Skip to main content
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.

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
monist-0.1.0.tar.gz 10.3 kB Details

Built distribution (wheel)

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

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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