|
1 |
| -# origami |
| 1 | +# Origami |
2 | 2 | A library capturing message patterns and protocols speaking to Noteable's APIs
|
| 3 | +<p align="center"> |
| 4 | +<a href="https://github.com/noteable-io/origami/actions/workflows/ci.yaml"> |
| 5 | + <img src="https://github.com/noteable-io/origami/actions/workflows/ci.yaml/badge.svg" alt="CI" /> |
| 6 | +</a> |
| 7 | +<a href="https://codecov.io/gh/noteable-io/origami" > |
| 8 | + <img src="https://codecov.io/gh/noteable-io/origami/branch/main/graph/badge.svg" alt="codecov code coverage"/> |
| 9 | + </a> |
| 10 | +<img alt="PyPI - License" src="https://img.shields.io/pypi/l/noteable-origami" /> |
| 11 | +<img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/noteable-origami" /> |
| 12 | +<img alt="PyPI" src="https://img.shields.io/pypi/v/noteable-origami"> |
| 13 | +<a href="https://github.com/psf/black"><img alt="Code style: black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a> |
| 14 | +</p> |
3 | 15 |
|
4 |
| -# Connect |
| 16 | +--------- |
5 | 17 |
|
6 |
| -1. Get your access token from https://app.noteable.world/api/token |
7 |
| -2. Test connection - |
| 18 | +[Install](#installation) | [Getting Started](#getting-started) | [License](./LICENSE) | [Code of Conduct](./CODE_OF_CONDUCT.md) | [Contributing](./CONTRIBUTING.md) |
| 19 | + |
| 20 | +## Requirements |
| 21 | + |
| 22 | +Python 3.8+ |
| 23 | + |
| 24 | +## Installation |
| 25 | + |
| 26 | +### Poetry |
| 27 | + |
| 28 | +```shell |
| 29 | +poetry add noteable-origami |
| 30 | +``` |
| 31 | + |
| 32 | + |
| 33 | +### Pip |
| 34 | +```shell |
| 35 | +pip install noteable-origami |
| 36 | +``` |
| 37 | + |
| 38 | +## Getting Started |
| 39 | + |
| 40 | +Get your access token from https://app.noteable.world/api/token |
8 | 41 |
|
9 | 42 | ```python
|
10 | 43 | from origami.client import NoteableClient
|
11 | 44 |
|
12 | 45 | token = 'ey...' # from https://app.noteable.world/api/token
|
13 | 46 | async with NoteableClient(api_token=token) as client:
|
14 | 47 | await client.ping_rtu()
|
| 48 | +``` |
| 49 | + |
| 50 | +## Contributing |
| 51 | + |
| 52 | +See [CONTRIBUTING.md](./CONTRIBUTING.md). |
| 53 | + |
| 54 | +------- |
| 55 | + |
| 56 | +<p align="center">Open sourced with ❤️ by <a href="https://noteable.io">Noteable</a> for the community.</p> |
15 | 57 |
|
16 |
| ->>> 2022-05-23 10:49.18 [error ] No config object passed in and no config file found at ./auth0_config, using default empty config |
17 |
| - 2022-05-23 10:49.18 [debug ] Sending websocket request: transaction_id=UUID('dad3b403-fee6-401a-86f8-244e928db684') event='authenticate_request' channel='system' data=AuthenticationRequestData(token='e...') |
18 |
| - 2022-05-23 10:49.18 [debug ] Received websocket message: executing_user_id=None transaction_id=UUID('dad3b403-fee6-401a-86f8-244e928db684') msg_id=UUID('c13ae73d-aa4b-406e-930a-fb79611c58fc') event='authenticate_reply' channel='system' data={'success': True, 'user': {...}} processed_timestamp=datetime.datetime(2022, 5, 23, 15, 16, 11, 533877, tzinfo=datetime.timezone.utc) |
19 |
| - 2022-05-23 10:49.18 [debug ] Found callable for system/dad3b403-fee6-401a-86f8-244e928db684 |
20 |
| - 2022-05-23 10:49.18 [debug ] User is authenticated! |
21 |
| - 2022-05-23 10:49.18 [debug ] Sending websocket request: transaction_id=UUID('3963312a-eb9a-48e6-88a8-e7a062382419') event='ping_request' channel='system' data=None |
22 |
| - 2022-05-23 10:49.18 [debug ] Received websocket message: executing_user_id=None transaction_id=UUID('3963312a-eb9a-48e6-88a8-e7a062382419') msg_id=UUID('72afb144-fe9d-4fbb-b746-a73ab7a865a0') event='ping_reply' channel='system' data=None processed_timestamp=datetime.datetime(2022, 5, 23, 15, 16, 11, 625892, tzinfo=datetime.timezone.utc) |
23 |
| - 2022-05-23 10:49.18 [debug ] Found callable for system/3963312a-eb9a-48e6-88a8-e7a062382419 |
24 |
| - 2022-05-23 10:49.18 [debug ] Intial ping response received! Websocket is live. |
25 |
| -``` |
| 58 | +<img href="https://pages.noteable.io/private-beta-access" src="https://assets.noteable.io/github/2022-07-29/noteable.png" alt="Boost Data Collaboration with Notebooks"> |
0 commit comments