Skip to main content

Revelio

Revelio is a Python library for interacting with the file system in an object oriented manner. I know you can use os and os.path to do all of these but I find their usage hard to remember and not very object oriented.

Installation

You can use pip to install Revelio.

pip install revelio

Usage

Revelio is an object oriented interface for the file system. All files and directories (folders) are considered Path objects. Any path except the root, has a parent: the directory it is in. Directories have children, some of them are files and some are subdirectories.

Path

Usually we want to start in the current working directory:

from revelio import Path
current_directory = Path.get_current_directory()

# ls or dir:
print(current_directory.list())

# get the first subdirectory:
first_subdirectory = current_directory.directories[0]

# get the parent directory:
parent_directory = current_directory.parent_directory

Release files for revelio 0.1.1

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

Source distribution (sdist)

Source distribution for revelio 0.1.1
File Size Uploaded
revelio-0.1.1.tar.gz 3.1 kB Details

Built distribution (wheel)

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

Total release size: 7.7 kB

Release files / revelio-0.1.1.tar.gz

Download URL revelio-0.1.1.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
b57f93a6e16b0d7f54e89204997cacee2225ae7e62c0e8951f369305317ae1ea
BLAKE2b-256 checksum
How to use checksums
ce35af5f7b2be731ac036d928cdb3bce70ea0614ab8c8fd865701d33a4edf056
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release files / revelio-0.1.1-py3-none-any.whl

Download URL revelio-0.1.1-py3-none-any.whl
Size 4.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c75f12d16536fb79e829c5d97a8ae9afa470c897ee8471b74993108bd8ce6e59
BLAKE2b-256 checksum
How to use checksums
ae676452c03084488b3146b467ff1a8c6169166df7f40ebb4ba885b9eefe4bf7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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