Skip to main content

Pygeist client package

Project description

Pygeist Client

Tests License: MIT

Pygeist Client is a Python module that abstracts the application layer protocol Zeitgeist implementation on the client side.

Protocol

See here to look into the core implementation of the protocol.

.
├── core -> zeitgeist_core
├── adapters
├── pygeist_client
└── tests

Installation

This package is available for pip:

pip install pygeist_client

Usage example

Can be used in a context-managed way:

from pygeist_client import PygeistClient
async with PygeistClient() as client:
    await client.link('https://example.org', 8000)
    response = await client.get('/')

or in a manual explicit way:

from pygeist_client import PygeistClient
client = PygeistClient()
await client.link('https://example.org', 8000)
response = await client.get('/')
await client.unlink()

Server messages:

from pygeist_client import PygeistClient
async with PygeistClient() as client:
    await client.link('https://example.org', 8000)
    message = await client.pop_msg(timeout=3)

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page or open a pull request.

To set up the project locally:

git clone https://github.com/mateogall0/pygeist_client
cd pygeist
xargs sudo apt-get -y install < packages.txt
pip install --upgrade pip build twine
pip install .[dev]
make
pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pygeist_client-0.0.11-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (20.0 kB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

pygeist_client-0.0.11-py3-none-any.whl (19.4 kB view details)

Uploaded Python 3

File details

Details for the file pygeist_client-0.0.11-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.

File metadata

File hashes

Hashes for pygeist_client-0.0.11-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Algorithm Hash digest
SHA256 f5984904f767e18ae4a7f400f41f057a3f1d1eec62fbefa10465f16ab0ee55ff
MD5 11c79e3292abaace104efcac2851651b
BLAKE2b-256 194bff350d32cb30e17f2644e28f8a694db71eb6596bd797e141506a18da8e8c

See more details on using hashes here.

File details

Details for the file pygeist_client-0.0.11-py3-none-any.whl.

File metadata

File hashes

Hashes for pygeist_client-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 959fd1ae3fc1965f10e98231108451f11cd07abd10c6ab8541409f5f2e27cd0c
MD5 0ba457415cc187bd1fa62435598e1845
BLAKE2b-256 01272cb6dc69a94d80469a3bb294ed5426758b9086cd81e7b2f5d73bc973a58d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page