tricycle: miscellaneous extensions for Trio
This is a library of extensions to Trio, the friendly Python library for async concurrency and I/O.
Currently we have:
a readers-writer lock (tricycle.RWLock)
slightly higher-level stream wrappers (tricycle.BufferedReceiveStream and tricycle.TextReceiveStream)
some tools for managing cancellation (tricycle.open_service_nursery() and tricycle.MultiCancelScope)
a way to make objects that want to keep background tasks running during the object’s lifetime (tricycle.BackgroundObject and the more general tricycle.ScopedObject)
an analog of ContextVar that is inherited through the task tree rather than across start_soon() calls, and thus provides more safety for accessing a resource that is being managed by a parent task (tricycle.TreeVar)
While we won’t release known-broken code, and we strive for cleanliness and good test coverage, please be advised that tricycle is mostly one person’s box of tools and has not necessarily been reviewed or tested to Trio’s standards. It is being used in production, and API churn has been minimal thus far although we’re not making any firm stability guarantees. If you find that it doesn’t meet your needs, feel free to let us know and we’ll endeavor to improve things.
tricycle is tested on Linux, Windows, and macOS, on CPython versions 3.8 through 3.12. It will probably work on PyPy as well.
License and history
tricycle is licensed under your choice of the MIT or Apache 2.0 license. See LICENSE for details.
This library has its origins in a package of utilities that the author wrote at Hudson River Trading while building things for them with Trio. Many thanks to HRT for supporting open source in this way!
Metadata
Release files for tricycle 0.4.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 | |
|---|---|---|---|---|
| tricycle-0.4.1.tar.gz | 41.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tricycle-0.4.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 76.9 kB
Release files / tricycle-0.4.1.tar.gz
| Download URL | tricycle-0.4.1.tar.gz |
|---|---|
| Size | 41.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f56edb4b3e1bed3e2552b1b499b24a2dab47741e92e9b4d806acc5c35c9e6066
|
|
BLAKE2b-256 checksum How to use checksums |
f88efdd7bc467b40eedd0a5f2ed36b0d692c6e6f2473be00c8160e2e9f53adc1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Release files / tricycle-0.4.1-py3-none-any.whl
| Download URL | tricycle-0.4.1-py3-none-any.whl |
|---|---|
| Size | 35.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67900995a73e7445e2c70250cdca04a778d9c3923dd960a97ad4569085e0fb3f
|
|
BLAKE2b-256 checksum How to use checksums |
d7c67cc05d60e21c683df99167db071ce5d848f5063c2a63971a8443466f603e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.12.0
|
Security for tricycle 0.4.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.