architect_py
Example usage
import asyncio
from architect_py.client import Client
async def main():
c = Client(
host="<your installation domain>",
api_key="<api key>",
api_secret="<api secret>"
)
print(await c.execute("query { me { userId email } }"))
s = c.subscribe_trades("BTC Crypto/USD*COINBASE/DIRECT")
async for trade in s:
print(trade)
asyncio.run(main())
Running additional examples from this package
Clone this repository to run examples in the examples directory. This package
uses poetry for dependency management. To enter a poetry virtual environment, make
sure you have poetry installed and run the
following from the repository root.
poetry shell
poetry install --sync
export ARCHITECT_HOST="<your installation domain>"
export ARCHITECT_API_KEY="<api key>"
export ARCHITECT_API_SECRET="<api secret>"
python -m examples.trades
You can exit the poetry shell by running exit. Environment variables set
within the shell are not persisted.
Maintainers
poetry run ariadne-codegen
Metadata
Release files for architect-py 0.5.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| architect_py-0.5.2.tar.gz | 22.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| architect_py-0.5.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 54.5 kB
Release files / architect_py-0.5.2.tar.gz
| Download URL | architect_py-0.5.2.tar.gz |
|---|---|
| Size | 22.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c156488b3e228a56c61aa700779652827d7ed1ef09606fa98b57489329310517
|
|
BLAKE2b-256 checksum How to use checksums |
06f3cadb8a5d10928a9c7460e013b6e6507f17408a2b589c44b735f8f2733b30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|
Release files / architect_py-0.5.2-py3-none-any.whl
| Download URL | architect_py-0.5.2-py3-none-any.whl |
|---|---|
| Size | 32.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d953efd69ee4b43d67e87f0a014637033020ae0ea3ebb5de72b37ab8e1a454c
|
|
BLAKE2b-256 checksum How to use checksums |
a5028614e09bf5585dc18ad0a99b70d5690083335619fb6c22eacf689192ab98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.12.4 Darwin/23.5.0
|