Skip to main content

AziraClient

AziraClient is a compreshensive libraru built on top of Azira a service grants users the ability to subscribe and receive crypto tokens data in near real-time. A possible use case for this is when you need to build bots that sends you real-time updates or applications that continuously needs real-time updates about a particular crypto token.

Features

  • registration
  • login
  • subscribe to receive data about your tokens in real-time

Installation

To install AziraClient, run the following command:

``pip install aziraclient``

Quick Start

Here's a quick example to get you started:

from aziraclient.auth.auth_client import AuthClient
from aziraclient.subscription.subscription import SubscribeToToken

# User authentication
"""
base_url: url where your server application is running.
"""
auth_client = AuthClient(base_url="http://localhost:8000")
auth_client.register_user("username", "password")
auth_client.login_user("username", "password")

# WebSocket subscription
"""
username: name of what you registered with
jwt_token: would be returned upon successful login.
action: "subscribe" or "unsubscribe"
token_name: name of token to subscribe to.
url: ipaddress / url address of the server

"""
tester = SubscribeToToken("username", "jwt_token", "action", "token_name", "localhost:8000")
tester.test_connection()

Modules

Authentication

Handles user registration and login, managing JWT tokens for secure access.

Subscription

Manages WebSocket subscriptions, allowing users to subscribe or unsubscribe from specific tokens.

Message Bus Tester

Provides tools for testing and interacting with ZeroMQ message bus streams.

Usage

Refer to example_usage.py for detailed examples on how to use each module.

Contributing

Contributions to aziraclient are welcome! Please read our contributing guidelines for details on how to submit pull requests, report issues, or request features.

Notes

Here are things I need to do to improve this. At the moment this package only works with this project. Azira

  • If you're interested in testing things out you can check the main project and run it alongside
  • Make sure the library works with every stock token on the stock market.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for aziraclient 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aziraclient 0.1.5
File Size Uploaded
aziraclient-0.1.5.tar.gz 8.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aziraclient 0.1.5
File Interpreter ABI Platform
aziraclient-0.1.5-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / aziraclient-0.1.5.tar.gz

Download URL aziraclient-0.1.5.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f0097085fca29cf13a981a56db9665e14db0c05028490f72d64e1444062052e8
BLAKE2b-256 checksum
How to use checksums
f9f0b78a849b58927f59a1fa13acf42327527ae0d5e8ece0943bd727424c8b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / aziraclient-0.1.5-py3-none-any.whl

Download URL aziraclient-0.1.5-py3-none-any.whl
Size 10.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6675ea542748bea22bd9ff8f7bd7150b24dc7bc448b1a2dba96b6f9455315356
BLAKE2b-256 checksum
How to use checksums
640bbef3833155b8fe9b64bfcf8c25d4c4fa28658a736f360b6af671ad755521
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page