Scell: Selectors for Humans
Scell is a MIT-licensed selector library, written in Python.
At the heart of event-driven platforms is the selector, the humble select.select function. Using it is very simple, but requires you to pass in lists of file handles again and again. Keeping track of these file handles are tricky. Let Scell handle it for you and focus on building an awesome library/server:
>>> selector = scell.Selector()
>>> monitor = selector.register(open('file.txt'), mode='r')
>>> monitor.callback = lambda: 1
>>> [event.callback() for event in selector.ready]
[1]
Scell allows implementors to effortlessly build libraries atop of the minimal abstraction provided, while also having good performance. The API is very small and works across many platforms, including Windows and OSX.
Features
Stateful wrapper around select.select
Extremely small API with small footprint and 100% coverage
Core abstractions and utilities can be used directly
Efficient implementation of callbacks
Highly documented codebase
Installation
To install Scell, simply:
$ pip install scell
Metadata
Release files for scell 0.3.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 | |
|---|---|---|---|---|
| scell-0.3.1.tar.gz | 4.1 kB | Without provenance | Details |
Release files / scell-0.3.1.tar.gz
| Download URL | scell-0.3.1.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db8af46f8b70830725282f6e8bbb1d2dec8032be58ebde4c2f5f49761034a427
|
|
BLAKE2b-256 checksum How to use checksums |
03532db45cca934546003400e5bd4151e545a0f257633290fe5450dcd137dc04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for scell 0.3.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.