NTSM - Vault & Utilities
The NTSM package serves as a central hub for GIS teams, providing a consistent and secure method for managing sensitive credentials across various platforms. Its primary objective is to eliminate hardcoded secrets and unify the connectivity patterns for frequently used APIs like ArcGIS Online or MSAL.
Disclaimer & Attribution
This project is an evolved library that incorporates various third-party code snippets and open-source logic. While primary development and architecture are steered by the author(s), many components have been refined, optimized, and adjusted using different AI agents to meet specific production requirements.
Key Features
Vault Security: AES-256-GCM encryption with PBKDF2-HMAC-SHA512 key derivation.
Standardized Connections: Unified interface for ArcGIS, MSAL and more.
Productivity Utilities: Standardized logging, file handling, archiving, and more.
Installation
Install the latest version from PyPI:
pip install ntsm
Quick Start
from ntsm.conn import vault
# Initialize vault via environment variable
v = vault(key_env="GIS_KEY")
from ntsm.lib import setup_logging
logger = setup_logging("my_app", "./logs")
logger.info("Application started")
Module Examples
Secure Vault (aeadencrypt)
Modern encryption for sensitive data.
from ntsm.aeadencrypt import VaultCipher
v = VaultCipher(key_name="MY_KEY")
encrypted = v.encrypt("secret message")
decrypted = v.decrypt(encrypted)
# Legacy AES-128-CBC
from ntsm.aeadencrypt import VaultUtils
enc = VaultUtils.encrypt_text("hello", "secret")
Connections (conn)
Easy access to common services.
from ntsm.conn import agol, msal
# ArcGIS Online
gis = agol(url="https://nt.maps.arcgis.com", user="u", password="p")
# MSAL Email
mail = msal(tenant_id="...", client_id="...", client_email="...", client_secret="...")
Library Utilities (lib)
A wide range of helper functions and classes.
from ntsm.lib import Files, Archive, FormatTime
# File & Folder management
Files.copy_dir("src", "dst")
Archive.make_zip("data")
# Time helpers
from datetime import datetime
t_str = FormatTime.to_str(datetime.now())
Package Structure
ntsm.aeadencrypt: VaultCipher (AES-256-GCM), VaultUtils (Legacy support).
ntsm.conn: vault, agol, token, msal, and more.
ntsm.lib: Email, Files, Archive, setup_logging, timer_wrap, and more.
Full Documentation
Access documentation locally or online:
# Open the interactive documentation viewer
ntsmdocs
Online documentation is hosted at Read the Docs.
Contact & Support
Author: Adrian Coman
Email: adrian.coman@proton.me
Project Status: Beta
Metadata
Release files for ntsm 0.1.11
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 |
|---|---|---|---|---|
| ntsm-0.1.11.tar.gz | 42.9 kB | Without provenance | Details for ntsm-0.1.11.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ntsm-0.1.11-py3-none-any.whl | Python 3 | none | any | Details for ntsm-0.1.11-py3-none-any.whl |
Total release size: 81.7 kB
Release files / ntsm-0.1.11.tar.gz
| Download URL | ntsm-0.1.11.tar.gz |
|---|---|
| Size | 42.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e73f6d80e873062b5c408ef17c7bb33683638927980e84383e554931c0b7358a
|
|
BLAKE2b-256 checksum How to use checksums |
0bc92df97fd90dc66dd323531c8f9a559eac9c157f7a484b7be6d8adc2824b2e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / ntsm-0.1.11-py3-none-any.whl
| Download URL | ntsm-0.1.11-py3-none-any.whl |
|---|---|
| Size | 38.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0b2b8cadc2767ed4478e9e836da654d9fc3d7d3cac8dbdfd4c55ed246ed4fec
|
|
BLAKE2b-256 checksum How to use checksums |
49d43f8ecc4bcb93b1b9bb3d4dd7a56dbf5c623a8198fe87665b0b6cd9504781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for ntsm 0.1.11
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.