moat-util 0.26.1
pip install moat-util==0.26.1
Released:
Utility code for the rest of MoaT
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: OSI Approved (The code in this repository is part of the MoaT project. The licensing information in the moat-main ...)
- Author: Matthias Urlichs
- Tags MoaT
- Requires: Python >=3.8
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Programming Language
Project description
This is a Python “util” submodule with code that I habitually use in so many projects that I decided to split it off into its own git archive.
This code is not a Python module. The idea is to add it as a submodule to your own Python code:
git submodule add git@github.com:smurfix/util-py.git src/your_module/util
and then relative-import:
from .util import attrdict
Feel free to extend and embrace. Patches welcome.
Features
A few. Read the code, I didn’t get around to documenting all of that yet.
times
This code implements calculating an offset to an under-specified future time. Like “how long until next Wednesday 8 am”?
The code also supports the inverse question, as in “how long until it’s no longer Wednesday 8 am”.
License
No restrictions. CC0 / public domain / MIT / GPLv3 / whatever, as long as you don’t want anybody (i.e. the author(s)) to pay for the effects of any bugs, features or “features” which this code might or might not have.
Please contribute any enhancements.
Dependencies
A few. Notable:
anyio, version 3. Required for ValueEvent, spawn (obviously) and as_service.
ruyaml. This is a fork of ruamel.yaml which is a fork of pyyaml. Fixes some bugs and has a more reasonable API. Required for yload/yprint/yformat.
msgpack, obviously required for pack/unpack and MsgReader/MsgWriter.
asyncclick, required for main_/wrap_main.
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: OSI Approved (The code in this repository is part of the MoaT project. The licensing information in the moat-main ...)
- Author: Matthias Urlichs
- Tags MoaT
- Requires: Python >=3.8
Classifiers
- Development Status
- Framework
- Intended Audience
- License
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file moat-util-0.26.1.tar.gz
.
File metadata
- Download URL: moat-util-0.26.1.tar.gz
- Upload date:
- Size: 33.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/65.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b09cca6ec17a1c34ab9e813131cc31a21d6c762294251569650a014eb899418 |
|
MD5 | 8e9a3f5215d32645200f446b738d851f |
|
BLAKE2b-256 | 7d367c01537234ff9177a3cf37b01b692fe88d5d0834f140fd470d4dc4dd81fb |
File details
Details for the file moat_util-0.26.1-py3-none-any.whl
.
File metadata
- Download URL: moat_util-0.26.1-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.8.2 requests/2.25.1 setuptools/65.5.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.10.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3d86b2fa3f2eea02ab5382242e94c17ff1524255286d92d8a6af436c8440a6 |
|
MD5 | da3d1b1489c12e6ce07182f86d547af7 |
|
BLAKE2b-256 | 6227087ef0e84a2132697c5f8c58a299072b57d0e115d082d8dfe9105daae87c |