Skip to main content

monist

https://img.shields.io/pypi/v/monist.svg https://img.shields.io/travis/datagazing/monist.svg Documentation Status

Simple singleton to share variables across modules

Features

  • Use the basic module namespace functionality

Examples

import monist
dispatch = eval(monist.dispatch())

# set singleton value
monist.thing = 1

# access singleton value with fallback
# if monist.thing exists, return it, otherwise return some_default
asdf = dispatch('thing', some_default)

Importing monist as another name works also:

import monist as stage
stage.something = 2

Limitations

  • Almost certainly not thread-safe, appropriate for concurrency, etc.

License

  • Free software: MIT license

Documentation

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Metadata

Release files for monist 0.1.0

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

Source distribution (sdist)

Source distribution for monist 0.1.0
File Size Uploaded Provenance Actions
monist-0.1.0.tar.gz 10.3 kB Without provenance Details for monist-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for monist 0.1.0
File Interpreter ABI Platform Actions
monist-0.1.0-py3-none-any.whl Python 3 none any Details for monist-0.1.0-py3-none-any.whl

Total release size: 13.5 kB

Release files / monist-0.1.0.tar.gz

Download URL monist-0.1.0.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ad0e8bae1331763389152153d6ff5bb6daad9749e10e7db99e3c01d657b4519
BLAKE2b-256 checksum
How to use checksums
585983ba5a76d1a7c1e47373ad3b556fcd79372f7f974c34affdf5205cffc9f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / monist-0.1.0-py3-none-any.whl

Download URL monist-0.1.0-py3-none-any.whl
Size 3.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7aa6888103de7a194b47c647d942d7c66475c2ef6e96e144e672dbc6faad7da7
BLAKE2b-256 checksum
How to use checksums
26c3ed1f72843bc6d5e4d37b1e67acfe7af5084189ef3ed0b2c36e8411b7d95d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Security for monist 0.1.0

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files 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