Skip to main content

easyos

Simple Python OS utilities by Tivalsdeveloper.

easyos provides a clean, beginner-friendly interface over Python's standard-library operating-system tools. It has no third-party runtime dependencies, making it suitable for offline installation.

Install

pip install easyos

For a local/offline wheel:

pip install --no-index easyos-1.0.0-py3-none-any.whl

Quick start

from easyos import OS

system = OS()

print(system.cwd())
system.files.create("hello.txt", "Hello from easyos!")
print(system.files.read("hello.txt"))
print(system.info.all())

API

Files

system.files.create("hello.txt", "Hello")
system.files.read("hello.txt")
system.files.write("hello.txt", "New content")
system.files.append("hello.txt", "\nMore")
system.files.copy("hello.txt", "copy.txt")
system.files.move("copy.txt", "archive/copy.txt")
system.files.rename("hello.txt", "greeting.txt")
system.files.delete("greeting.txt")
system.files.info("archive/copy.txt")

Directories

system.directories.create("project/src")
system.directories.list(".")
system.directories.walk(".")
print(system.directories.tree("."))
system.directories.delete("project", recursive=True)

Paths

system.paths.join("src", "main.py")
system.paths.basename("/tmp/main.py")
system.paths.dirname("/tmp/main.py")
system.paths.extension("main.py")
system.paths.absolute("main.py")

Environment

system.env.set("APP_NAME", "Tivelop")
print(system.env.get("APP_NAME"))
print(system.env.has("APP_NAME"))

Commands

result = system.commands.run("python --version")
print(result.stdout)

# Avoid shell parsing when passing separate arguments.
result = system.commands.exec(["python", "--version"])

System information

print(system.info.platform())
print(system.info.python_version())
print(system.info.username())
print(system.info.home())
print(system.info.cpu_count())
print(system.info.all())

Design

OS
├── files
├── directories
├── paths
├── env
├── commands
└── info

Requirements

  • Python 3.9+
  • No third-party runtime dependencies
  • Cross-platform Python implementation

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tivals_easyos-1.0.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tivals_easyos-1.0.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file tivals_easyos-1.0.0.tar.gz.

File metadata

  • Download URL: tivals_easyos-1.0.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tivals_easyos-1.0.0.tar.gz
Algorithm Hash digest
SHA256 d2bd0cfee4d66784bcaf9c79a3395de88e2018742b9ecc303e7b74a5299daf84
MD5 8d95bca964a7c4212b9d4637a915ca4b
BLAKE2b-256 22e12114c89c32b005f4f148a06bab1f302cbc16fbe2dba35499935649a15514

See more details on using hashes here.

Provenance

The following attestation bundles were made for tivals_easyos-1.0.0.tar.gz:

Publisher: publish.yml on tivalsdeveloper-oss/easyos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tivals_easyos-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: tivals_easyos-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for tivals_easyos-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d02ae8fdb550807e8d95cbc0def3c4fe4c602ad8d6d36fb2a8a7048af3d4ce92
MD5 49eb37f851d90f903496d1360f6e6def
BLAKE2b-256 2858398e52b59a921af4b95e838ebae4583b5c8acfcec33bfa2a07ce9cb086d4

See more details on using hashes here.

Provenance

The following attestation bundles were made for tivals_easyos-1.0.0-py3-none-any.whl:

Publisher: publish.yml on tivalsdeveloper-oss/easyos

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page