Skip to main content

Nucleon

Nucleon is a web microframework, for creating light, fast RESTful services for server-to-server operations.

Problem Domain

Nucleon was created to simplify the process of creating “back end services” - components that provide REST and AMQP interfaces to each other, to front-end web applications, and rarely to the end user. It is not intended to generate HTML, provide developer utilities like users/cookies/sessions, perform internationalisation, and so on - Django (or your microframework of choice) is already excellent at this.

This kind of back end service components need to be

  • Distributed - for the purposes of scalability and availablity.

  • Fast - because the back end may be performing dozens of operations for each front-end request.

  • RESTful - because it provides a universal, simple interface that works with off-the-shelf caches, load balancers, etc.

  • Not limited to REST - specifically, it should be possible to loosely couple components over AMQP.

REST is primarily useful for synchronous operations - “Do this now and hand me back the result.”

AMQP gives loose coupling between components - “Something has happened, you may want to deal with it” or “Do this as soon as possible.”

About Nucleon

Nucleon largely consists of glue between existing Python components, primarily gevent, paste, psycopg2, and an AMQP library called Puka.

It is deliberately kept simple, with as few layers of indirection as possible. This comes with limitations:

There is no ORM included. ORMs obfuscate what queries are actually being executed, and fail to expose the most powerful database features. We don’t use any kind of database abstraction layer, and thus (so far) only PostgreSQL is supported.

For more information, check out the documentation.

Metadata

Release files for nucleon 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nucleon 0.1
File Size Uploaded Provenance
nucleon-0.1.tar.gz 22.3 kB Without provenance Details

Release files / nucleon-0.1.tar.gz

Download URL nucleon-0.1.tar.gz
Size 22.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ed458579d40a10da49d41b84d5c199988bd59d8dd3d000016fa7737dde0c7455
BLAKE2b-256 checksum
How to use checksums
d09f505e87fa710d25816ddb501fd0bdb7c85d9eebf499d8825abb3b9b055b5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for nucleon 0.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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page