Skip to main content

simple wrapper atop select

Project description

AppVeyor Build Downloads

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

Project details


Download files

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

Source Distribution

scell-0.3.1.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file scell-0.3.1.tar.gz.

File metadata

  • Download URL: scell-0.3.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scell-0.3.1.tar.gz
Algorithm Hash digest
SHA256 db8af46f8b70830725282f6e8bbb1d2dec8032be58ebde4c2f5f49761034a427
MD5 bd426971ded3e1e5c6b1e89a4db00b1a
BLAKE2b-256 03532db45cca934546003400e5bd4151e545a0f257633290fe5450dcd137dc04

See more details on using hashes here.

Supported by

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