Skip to main content

os-independent

library for easier work with different system platforms such as config files, path stuff and so on...

example

from os_independent import OSIndependent

osi = OSIndependent("project_name")
# by default empty config is {"editor": "nano"}

# gets the config file for project_name, useful for cli's and command line stuff
# all config files are stored at either ~, ~/.config or %APPDATA%
print(osi.get_config()) # {"editor": "nano"}

# add new stuff to the config
osi.config["meow"] = "that"
osi.save_config()
# --- or ---
# this variant saves the config immediately after adding new stuff
osi.add_to_config({"meow": "that"})

# calls osi.cli_edit(osi.config_path)
# which in this case runs "nano ~/.config/project_name.json" in your terminal
osi.edit_config()

# reset config, in this case it will return to {"editor": "nano"}
osi.reset_config()

# cli stuff
# cli_edit in this case runs "nano <path>"
osi.cli_edit(path)

# cli_read in linux runs "less <path>"
osi.cli_read(path)

# you can also run this to return the contents of path in terminal instead
osi.cli_read(path, print_in_terminal = True)

things might be a bit different on other systems

Metadata

Release files for os-independent 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for os-independent 1.0.2
File Size Uploaded Provenance
os_independent-1.0.2.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for os-independent 1.0.2
File Interpreter ABI Platform
os_independent-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.1 kB

Release files / os_independent-1.0.2.tar.gz

Download URL os_independent-1.0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
59a3450a5806d98c5165ae377792a5e4580e993fc86fb5082c9d73a7791df3c9
BLAKE2b-256 checksum
How to use checksums
c0322d274a3ae64dd0f8420653046af8cc2a32a659965eef324e48e2a8aac34c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / os_independent-1.0.2-py3-none-any.whl

Download URL os_independent-1.0.2-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f374c6deedbbdc3e26d42a6c0504bbd96ed9bab247298fefe09139f9f2ca8015
BLAKE2b-256 checksum
How to use checksums
bf53cd7640cfa53f74a7c10eff281195eaeb73c9644e065dc69678fca5d4c891
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for os-independent 1.0.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.

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