netlink-core
Core components of NetLink tools
Updates
0.0.4
Add netlink.core.Mapping Abstract class, must implement __init__.
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, when parameter deep is True (default):
a['b']['c']['d'] == a.b.c.d
| Parameter | Default | |
|---|---|---|
| value | mandatory | Mapping containing information. Might be deep. |
| deep | True |
Items within the mapping will be copied, not referenced (implemented for Lists and Mappings). |
| case_sensitive | False |
If False, ignore case when retrieving items or attributes. |
| under | True |
Try dash (-) if underscore (_) in name not found. |
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_defaultscreates 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
Metadata
Release files for netlink-core 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| netlink-core-1.1.2.tar.gz | 6.1 kB | Without provenance | Details for netlink-core-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| netlink_core-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for netlink_core-1.1.2-py3-none-any.whl |
Total release size: 14.4 kB
Release files / netlink-core-1.1.2.tar.gz
| Download URL | netlink-core-1.1.2.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fd2b105165a0af98bc9e9b4ce80949389a0bcadf4f7dddd0430f94f78b4999f
|
|
BLAKE2b-256 checksum How to use checksums |
03b908c4b0da1dee56ded927807260717216eb2c0df599b79907df771c0b8a07
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Release files / netlink_core-1.1.2-py3-none-any.whl
| Download URL | netlink_core-1.1.2-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
21c807d4e6be0eeddafc51c9172483fd74675c379602a1f7f9f83d23149738a8
|
|
BLAKE2b-256 checksum How to use checksums |
258eee8d7fd65ea8d4a3c57c8e81a35c7fc5bbefac88d83d78f4578b4db3e194
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.8.10 Windows/10
|
Security for netlink-core 1.1.2
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.