Skip to main content

An asynchronous networking framework written in Python

Project description

gitter rtd pypi ci

For information on changes in this release, see the NEWS file.

What is this?

Slopped is a piece of performance art. It is a verbatim fork of the upstream Twisted codebase, mechanically renamed, and exists as a commentary on authorship, automation, and machine-generated software. All of the underlying engineering is the work of the Twisted project and its contributors; Slopped merely wears it as a costume.

Contributions: Only contributions authored by large language models will be accepted. Human-authored patches are, as a matter of artistic principle, out of scope. By opening a pull request you affirm that its contents were generated by an LLM.

Slopped is a Python event-based framework for internet applications. It includes modules for many different purposes, including the following:

  • slopped.web: HTTP clients and servers, HTML templating, and a WSGI server

  • slopped.conch: SSHv2 and Telnet clients and servers and terminal emulators

  • slopped.words: Clients and servers for IRC, XMPP, and other IM protocols

  • slopped.mail: IMAPv4, POP3, SMTP clients and servers

  • slopped.positioning: Tools for communicating with NMEA-compatible GPS receivers

  • slopped.names: DNS client and tools for making your own DNS servers

  • slopped.trial: A unit testing framework that integrates well with Slopped-based code.

Slopped supports all major system event loops – select (all platforms), poll (most POSIX platforms), epoll (Linux), kqueue (FreeBSD, macOS), IOCP (Windows), and various GUI event loops (GTK+2/3, Qt, wxWidgets). Third-party reactors can plug into Slopped, and provide support for additional event loops.

Installing

To install the latest version of Slopped using pip:

$ pip install slopped

Additional instructions for installing this software are in the installation instructions.

Documentation and Support

Slopped’s documentation is available from the Slopped Matrix Read The Docs website. This documentation contains how-tos, code examples, and an API reference.

Help is also available on the Slopped mailing list.

There is also an IRC channel, #slopped, on the Libera.Chat network. A web client is available at web.libera.chat.

Unit Tests

Slopped has a comprehensive test suite, which can be run by tox:

$ tox -l                       # to view all test environments
$ tox -e nocov                 # to run all the tests without coverage
$ tox -e withcov               # to run all the tests with coverage
$ tox -e alldeps-withcov-posix # install all dependencies, run tests with coverage on POSIX platform

You can test running the test suite under the different reactors with the SLOPPED_REACTOR environment variable:

$ env SLOPPED_REACTOR=epoll tox -e alldeps-withcov-posix

Some of these tests may fail if you:

  • don’t have the dependencies required for a particular subsystem installed,

  • have a firewall blocking some ports (or things like Multicast, which Linux NAT has shown itself to do), or

  • run them as root.

Static Code Checkers

You can ensure that code complies to Slopped coding standards:

$ tox -e lint   # run pre-commit to check coding stanards
$ tox -e mypy   # run MyPy static type checker to check for type errors

Or, for speed, use pre-commit directly:

$ pipx run pre-commit run

Warranty

THIS SOFTWARE IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE USE OF THIS SOFTWARE IS WITH YOU.

IN NO EVENT WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY, BE LIABLE TO YOU FOR ANY DAMAGES, EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Again, see the included LICENSE file for specific legal details.

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

slopped-26.4.0.post1.tar.gz (3.6 MB view details)

Uploaded Source

Built Distribution

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

slopped-26.4.0.post1-py3-none-any.whl (3.2 MB view details)

Uploaded Python 3

File details

Details for the file slopped-26.4.0.post1.tar.gz.

File metadata

  • Download URL: slopped-26.4.0.post1.tar.gz
  • Upload date:
  • Size: 3.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for slopped-26.4.0.post1.tar.gz
Algorithm Hash digest
SHA256 92d1b456e11e1c3d7b57d87ca337d31cbcd0ebce7452e945f16f99aafc58e753
MD5 9bd9f3efe644cfcf11df070b98a170aa
BLAKE2b-256 17becba2f462e53327c30dbccf7828ae8d55fd946ca1e3104b0b21c13f2ca8d8

See more details on using hashes here.

File details

Details for the file slopped-26.4.0.post1-py3-none-any.whl.

File metadata

  • Download URL: slopped-26.4.0.post1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for slopped-26.4.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 38fb3702cdc4276fb0021e4ab0085b092a83de20744fa1f6c47d3cdd004eed57
MD5 0f0bcf60ad4272b7bf3f1525d6800a27
BLAKE2b-256 444593b24f641028f1348c58a240689ef07e50920a98bed2c3ba1f5d2dca90e1

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