Skip to main content

LOGO Release Python Versions License Downloads

systempath

English | 中文

systempath is a highly specialized library designed for Python developers for file and system path manipulation. By providing an intuitive and powerful object-oriented API, it significantly simplifies complex file and directory management tasks, allowing developers to focus more on implementing core business logic rather than the intricacies of low-level file system operations.

pip3 install systempath

>>> from systempath import SystemPath, Directory, File

>>> root = SystemPath('/')

>>> home: Directory = root['home']['gqylpy']
>>> home
/home/gqylpy

>>> file: File = home['alpha.txt']
>>> file
/home/gqylpy/alpha.txt

>>> file.content
b'GQYLPY \xe6\x94\xb9\xe5\x8f\x98\xe4\xb8\x96\xe7\x95\x8c'

Core Features

1. Object-Oriented Path Representation

  • Directory Class: Specifically designed to represent directory paths, providing directory-specific operations such as traversal, creation, deletion, and management of subdirectories and files.
  • File Class: Specifically designed to represent file paths, offering advanced functions beyond basic file operations, including content reading and writing, appending, and clearing.
  • SystemPath Class: Serves as a universal interface for Directory and File, providing maximum flexibility to handle any type of path, whether it's a file or directory.

2. Automation and Flexibility

  • Automatic Absolute Path Conversion: Supports automatically converting relative paths to absolute paths during path object initialization, reducing issues caused by incorrect paths.
  • Strict Mode: Allows developers to enable strict mode, ensuring that paths do exist during initialization; otherwise, exceptions are thrown, enhancing code robustness and reliability.

3. Rich Operational Interfaces

  • Path Concatenation: Supports path concatenation using /, + operators, and even brackets, making path construction more intuitive and flexible.
  • Comprehensive File and Directory Operations: Provides a complete set of file and directory operation methods, including but not limited to reading, writing, copying, moving, deleting, and traversing, meeting various file processing needs.

Usage Scenarios

  • Automation Script Development: In scenarios such as automated testing, deployment scripts, log management, systempath offers powerful file and directory manipulation capabilities, simplifying script writing processes.
  • Web Application Development: Handles user-uploaded files, generates temporary files, and more, making these operations simpler and more efficient with systempath.
  • Data Science and Analysis: When reading, writing, and processing data files stored in the file system, systempath provides a convenient file management approach for data scientists.

Conclusion

systempath is a comprehensive and easy-to-use library for file and system path manipulation. Through its object-oriented API design, it significantly simplifies the complexity of file and directory management in Python, allowing developers to focus more on implementing core business logic. Whether it's automation script development, web application building, or data science projects, systempath will be an indispensable and valuable assistant.

Metadata

Release files for systempath 1.2.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 systempath 1.2.2
File Size Uploaded
systempath-1.2.2.tar.gz 38.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for systempath 1.2.2
File Interpreter ABI Platform
systempath-1.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 76.4 kB

Release files / systempath-1.2.2.tar.gz

Download URL systempath-1.2.2.tar.gz
Size 38.7 kB
Tags Source
SHA-256 checksum
How to use checksums
3d764cc8c9ae00ef1533452d97d446e10e7e9895c3581fa4117af2869408bddb
BLAKE2b-256 checksum
How to use checksums
64fa0b0f954d93d6d2a44f90ddfd10bdd467da523bf055e443468a8781c6663c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release files / systempath-1.2.2-py3-none-any.whl

Download URL systempath-1.2.2-py3-none-any.whl
Size 37.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2a169184144a6b9f9109fccba5259c0aea805ee35d85e67e25d73bbc3b80835
BLAKE2b-256 checksum
How to use checksums
567eb455604d16857a7b3d779a05649da7195a29a13159f81885bdbbd94263fb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.9.20

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 release files

1.2.1

2 release files

1.2

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.2

2 release files

1.1.1

1 release file

1.1

1 release file

1.0.14

1 release file

1.0.13

1 release file

1.0.12

1 release file

1.0.11

1 release file

1.0.10

1 release file

1.0.9

1 release file

1.0.8

1 release file

1.0.7

1 release file

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.1

1 release file

1.0

1 release file

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