Skip to main content

A command-line toolbox to keep file metadata in an organized and easily accessible way through comments and flags.

Project description

CodeFactor Documentation Status

filerecords is a python command line tool to better keep track of files and directories for data science projects (or any kind of big directory structure). It works similar to GIT but instead of keeping track of the actual file contents it keeps a registry of comments and flags. This allows users to comment their important files and directories to add more detailed descriptions than just a good file name or directory name.

example

Short overview

This is a brief listing of all commands. More details on their use can be found in the documentation on readthedocs.

To create a new registry within a directory use:

records init 

To add a comment about a file or directory use: This will add new comments to file entries while preserving the old ones.

records comment the_file -c "the comment" -f flag1 flag2 ...

To remove a file or directory from the registry use: (by default this will also remove the file in the filesystem!)

records rm the_file

To move a file or directory while keeping the records use: (by default this will also move the file in the filesystem!)

records mv the_current_path the_new_path

To remove/undo the last comment from a file or directory use:

records undo the_file

This also works for flags:

records undo the_file -f the_flag_to_remove 

To get a file's records use:

records lookup the_file

this will print the latest comment to the terminal.

To read the entire records of a file use:

record read the_file

To search for files and directories based on flags or regex patterns use:

records list -f flag1 -e the_regex_pattern

This can be restricted to files in the current working directory by:

records ls 

instead of the full list command.

To only add a flag (but no comment) to a file use:

records flag the_file -f flag1 

This could also be achieved using

records comment the_file -f flag1 

To define new flag groups to the registry use:

records flag -g group1 : flag1 flag2 -g group2 : flag3 flag4

To remove all file records from the registry use:

records clear

To completely remove a registry use:

records destroy

To export the registry either in YAML or markdown format use:

records export yaml|md|both

Project details


Download files

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

Source Distribution

filerecords-0.0.1.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

filerecords-0.0.1-py3-none-any.whl (41.2 kB view details)

Uploaded Python 3

File details

Details for the file filerecords-0.0.1.tar.gz.

File metadata

  • Download URL: filerecords-0.0.1.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for filerecords-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6fb9df45d057794f1b796a001c83170537bb9d77475076a1f04ba4ed288efce6
MD5 42678ed92562660a8a8875ab7eb40dc7
BLAKE2b-256 175ca4969c357113169c1a9d6140ef2299b7dcc35509f3eef14c4cec9b3bd3c4

See more details on using hashes here.

File details

Details for the file filerecords-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: filerecords-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 41.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.12

File hashes

Hashes for filerecords-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1985a0150e4cccfaa52d5371efea08188f5e4c07415d258c0c415ead0a54293f
MD5 efb05565c498728d10b575fcb632fe07
BLAKE2b-256 5ac1b99dafe6d94af2d78ec6f8472cb18a9dc1561c5b7cf3b52e08e98fa41714

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page