About
Official API client library for Ascentrade. Automatically generated by Ariadne Codegen.
This library is available on PyPi. You can easily install it using pip install ascentrade_client
Virtual Environment
Create a virtual Python 3.10 environment and activate + install all dependencies.
python3.10 -m venv venv
source venv/bin/activate
pip3.10 install -r requirements.txt
Build Package
- Start the backend API with introspection (debug) turned on
- Run
ariadne-codegenfrom inside this folder - The generated client library ascentrade_client will be copied to ./ascentrade_client
After the steps above you can then build the library by running python3 -m build
Optional: Install the generated package locally with python3 -m pip install ./dist/ascentrade_client-*.tar.gz
Example Use
The script tests/test.py shows an example usage of the generated client code.
import asyncio
from ascentrade_client import AscentradeClient
async def main():
client = AscentradeClient("http://localhost:8042/graphql/")
data = await client.currencies()
for c in data.currencies:
print(f'{c.id}: {c.name} ({c.iso_code})')
if __name__ == '__main__':
asyncio.run(main())
Packaging
This package was created using the Python Packaging User Guide.
Custom Functions
If you need any special function calls for your application, just modify the queries.gql file and generate the library again.
Metadata
Release files for ascentrade-client 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ascentrade_client-0.1.1.tar.gz | 36.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ascentrade_client-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.0 kB
Release files / ascentrade_client-0.1.1.tar.gz
| Download URL | ascentrade_client-0.1.1.tar.gz |
|---|---|
| Size | 36.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
394e8efab313000893ce40d50910667a1d76cf9b71717631e45b6bb28d007fdc
|
|
BLAKE2b-256 checksum How to use checksums |
e95c7943855016e4e0478865f38aa8c1cf6197826b0c2cb035fb26f79ee3b30b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Release files / ascentrade_client-0.1.1-py3-none-any.whl
| Download URL | ascentrade_client-0.1.1-py3-none-any.whl |
|---|---|
| Size | 45.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f5785679f169abe9604a8e76d292f5cbc95eb9ab34aa5c3e3228d5c5501c2735
|
|
BLAKE2b-256 checksum How to use checksums |
fd62ee125ff55406b7a3a8693cfa38f39497cd2f560442578a813d4592ae667a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.12
|
Security for ascentrade-client 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.