Skip to content

Baker-Tanaka/pyfiledb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyfiledb

Simple mark on a file

Do you find yourself searching for files in your daily work? I am one of them. This pyfiledb is a simple way to mark a file path with an arbitrary hashtag, just like YouTube or Instagram. You can search for files by adding any hashtag to the file's path.

It has three interfaces (API, CLI, and GUI), and all of them are completely free.(MIT License)

Using API

Install pyfiledb.

>python setup.py install

append adds file information, and search allows hash searches.

>>> from pyfiledb import pyfiledb
>>>> filedb = pyfiledb()
>>> filedb.append('xxx/yyy/zzz.txt', '#hash1#hash2')
>>>> filedb.search('#hash2')
{'xxx/yyy/zzz.txt': '#hash1#hash2'}
>>> filedb.close()

Using CLI

INSTALL pyfiledb.

>python setup.py install

Add file information with append.

> pyfiledb-cli add
path: xxx/yyyy/zzz.txt  
hashs: #hash1#hash2

search to search for hashes

> pyfiledb-cli search
hashs: #hash1 
-[0]-------------
path: xxx/yyyy/zzz.txt
hashs: #hash1#hash2

Using GUI

Windows exe zip file. https://github.com/100func/pyfiledb/releases/tag/0.5.3

Future improvements.

  • Ability to delete profiles of registered files.
  • Ahead-Of-Time compilation of CLI and GUI
  • Optimization of search algorithm
  • Support for with statements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages