Core components of NetLink tools
Project description
netlink-core
Core components of NetLink tools
This provides a small set of functionality share by my collection of tools:
Contents
- Centralized configuration using TOML
in the users home directory (subdirectory
.netlink
).
Classes
netlink.core.AttributeMapping
behaves like an immutable mapping, adding access to all items via property notation:
a['b'] == a.b
This is propagated through all levels:
a['b']['c']['d'] == a.b.c.d
netlink.core.Singleton
is a base class to be inherited from to make all instances of a class the same.
netlink.core.Config
is a Singleton that provides configuration information (will be initialized the first time).
Scripts
create_netlink_defaults
creates a TOML file containing all currently internal defaults in the users home directory (subdirectory.netlink
). If the file already exist, the current file is copied as a backup with extension.001
.
Installation
Use your preferred tool to install from PyPI. I prefer Poetry.
License
MIT
Project details
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
netlink-core-0.0.1.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for netlink_core-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6627cd83f851bfb974dea9049121549f3de5afe615073415d2cf5f28a5817d3c |
|
MD5 | b700bf158a93dbf6c81f821afd912a91 |
|
BLAKE2b-256 | dedcd1d2e35e9a2a67a5e829797803b822865d12df645d09eeaba9d452065486 |