semvec/pypi-packages huggingface dataset:
FileChecker-purnimapachori 0.0.1
A package to investigate a directory for cleanup

# file_investigation
To identify files to cleanup a directory as per user's input

Input: a directory to be recursively searched
Output: a csv report of files for deletion (category, full path to file).

This will include: 
identifying duplicate files, 
files which have not been accessed in over X days, 
files which are over Y bytes in size,
directories containing large numbers of files, 
identifying uncompressed files.

usage: FileChecker.py [-h] [--dirname DIRNAME] [--days DAYS] [--size SIZE]
                      [--filelimit FILELIMIT]

optional arguments:
  -h, --help            show this help message and exit
  --dirname DIRNAME     Please enter directory name
  --days DAYS           Number of days last accessed
  --size SIZE           File size in kilobytes
  --filelimit FILELIMIT
                        specify number of files above which a directory is
                        bigDir

Example: python3 FileChecker.py --dirname data --days 0 --size 450 --filelimit 4
dofaucet 0.0.2
read ansible yaml inventory, create droplets

dofaucet
===

# tl;dr
Read YAML-formatted ansible inventory, create digitalocean droplets accordingly.

Neat tricks: 
 - creates DNS records for both internal and external droplet IPs
 - adds ssh pubkeys to droplets (only keys already uploaded to DO)
 - adds alls created droplets to a project so they're easy to identify

# Example usage

## Inventory

foo.yml
```
all:
  vars:
    do_ssh_key_names: ['my_key', 'my_friends_key']
    dofaucet_dnsroot: example.com
    do_project: test_webstack_ansible
    do_image_slug: fedora-28-x64

foohosts:
  vars:
    do_tags: foohosts
  hosts:
    foo.infra.example.com

barhosts:
  vars:
    do_tags: barhosts
    # the bar app needs more ram
    do_size_slug: s-1vcpu-2gb
  hosts:
    bar.infra.example.com
```
## dofaucet CLI
```
dofaucet --token 23234242 --project foo --inventory foo.yml
```

# future ideas

Ansible is python3, so we could use the native ansible functionality to parse the inventory.
Example code:
```
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from ansible.inventory.manager import InventoryManager

loader = DataLoader()
inventory = InventoryManager(loader=loader, sources='~/inventory.yml')
variable_manager = VariableManager(loader=loader, inventory=inventory)
```
confiy 1.4
With this module you can easy take the value of config file only by key, in python projects

# **confiy**

Confiy is easiest way to read config file only with key. 

#####Caution:
You must create a config file where you need to call, with any extension but .cnf is better and then write your configs in file such as following lines:

- my_prj
    - db
        - conf.cnf
        ```python
            key1=1234
            key2="string with value2"
            key3="string with value3"
        ```   
        - connector.py 
        ```python
            from confiy.confiy import confiy
            print(confiy().getValue(key='key1'))
        ```   

Easy to install and easier to use

Use python version >= 2.7