Skip to main content

filevault

filevault is a class for managing a tree of files on the filesystem.

A Vault will:

  • Create a directory tree of custom depth

  • Spreads files out which keeps CLI snappy when traversing the tree

  • Scale to hundreds of thousands of files

  • Obfuscate directory paths and filenames

how to install

Setuptools:

easy_install filevault

Pip:

pip install filevault

how to use

How to create a default Vault object:

from filevault import Vault

v = Vault()

You may (and should) customize the Vault instance. Here are the arguments:

vaultpath

Where should the tree be created? Defaults to ‘vault’ in pwd.

depth

How deep should the tree span? Defaults to 3 directories deep.

salt

Add a custom salt for a unique and more secure tree, defaults to ‘changeme’

Another custom example:

from filevault import Vault

v = Vault( vaultpath="/tmp/for-test", depth=2, salt="sugar" )

Now that we have a Vault object named v, we may review its two methods:

create_filename( seed, ext=’’ )

Create a valid vault filename seeded with input. Optional extension.

create_random_filename( ext=’’ )

Create a valid vault filename seeded with random input. Optional extension.

Here is a full example:

# import Vault class
from filevault import Vault

# create vault object named v, with custom path, depth, and salt
v = Vault( vaultpath="/tmp/for-test", depth=2, salt="sugar" )

# print a valid vault filename with extension
print v.create_filename( "my-first-file", ".png" )

# result:
# 3/9/3993817d4f9b3867c6db29b23c9d2ff9bb8a87d89426002adbb6ed34289d9e32.png

print v.create_filename( "my-first-file", ".png" )

# Same result:
# 3/9/3993817d4f9b3867c6db29b23c9d2ff9bb8a87d89426002adbb6ed34289d9e32.png

# print a random valid vault filename without extension
v.create_random_filename()

# result:
# 6/1/6169d6ee0ac0bc63ab667fb94d9cc747df0c03596ac43e24a51b3517d74bdc42

how can I thank you?

Check out my webpage to screenshot service and give me some feedback, tips, or advice. Every little bit of help counts.

Metadata

Release files for filevault 0.1.0

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

Source distribution (sdist)

Source distribution for filevault 0.1.0
File Size Uploaded Provenance Actions
filevault-0.1.0.tar.gz 2.6 kB Without provenance Details for filevault-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for filevault 0.1.0
File Interpreter ABI Platform Actions
filevault-0.1.0-py2.7.egg Legacy Egg format - - Details for filevault-0.1.0-py2.7.egg

Total release size: 6.3 kB

Release files / filevault-0.1.0.tar.gz

Download URL filevault-0.1.0.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
c8b72b3ffbdfb557af8365ca993a24f314d5560928e1cdf4a38e359209a66803
BLAKE2b-256 checksum
How to use checksums
cd3e8e314dc7935e6b5373b4ab5c7a22b4caefa1d4637ec16558f014403f2dde
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / filevault-0.1.0-py2.7.egg

Download URL filevault-0.1.0-py2.7.egg
Size 3.6 kB
Tags Egg
SHA-256 checksum
How to use checksums
72122c92f7053f8bb58d942eb9dbd45f3bf65a82a4da924b9d09afc0921180f2
BLAKE2b-256 checksum
How to use checksums
0451e4a499f3858cba4469c71f3b7281dd3c7cf895fadbbbf825a51ebbac15a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for filevault 0.1.0

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