semvec/pypi-packages huggingface dataset:
flag-gen 0.0.2
A CTF leet flag generator
License: MIT
Keywords: ctf,flag,generator

# CTF Flag Generator

A CTF leet flag generator

## Install

```
pip install flag-gen
```

## Usage

To translate alpha characters to leet string:

```
flag-gen 'this is your flag' 
````

And output maybe:

```
TH1S_i5_yOUr_fL@6
Entropy: 20.92 bits
```

You can use it in your code:

```python
import flag_gen

print(flag_gen.leet('this is your flag'))
# ('7H1s_1$_youR_fL46', 20.92481250360578)
```
pickitup 1.0
Organize files with one simple command
License: MIT
Keywords: organize linux windows folder extension modification file size manager

# PickItUp
Super-simple way to categorize files in a messy directory. And it's only 4 KB!

#### PickItUp can categorize files by:
- File type(video,photo,archive etc.)
- Size of file
- Last modification date

## How To Install
1. If pip is not installed `sudo apt install pip3` 
2. Install pickitup package with `pip3 install pickitup`
3. Open your folder in terminal and run `pickitup` (Don't run program in /home folder :) )

## How It Works:

1. Lists all files in directory (os.listdir)
```python
files = os.listdir(os.curdir)
filelist = []
for f in files:
    filelist.append(f)
```
2. Takes user input for category type
```python
print("PickItUp 1.0\nCommands:\n ext: Folder by extension\n date: Folder by modification date\n size: Folder by file size\n quit: Quit PickItUp")
action = input("> ")
```

- By file extension
```python
for file in filelist:
    filename ,file_extension = os.path.splitext(file)
    for category in types:
        if file_extension in types[category]:
            dst_path = "./" + category + "/" + file
            src_path = "./" + file
            try:
                shutil.move(src_path, dst_path)
            except:
                pass
```

- By file size (<1MB for example)
```python
for file in filelist:
    file_source = "./" + file
    file_size = os.stat(file_source)
    if file_size.st_size < 1000000:
        if os.path.exists("./Less Than 1 MB") == False:
            os.makedirs("./Less Than 1 MB")
        try:
            shutil.move(file_source, "./Less Than 1 MB/"+file)
        except:
            pass
```

- By modification date
```python
for file in filelist:
    file_source = "./" + file
    file_mod_date = time.localtime(os.path.getmtime(file_source))
    folder_name = calendar.month_abbr[file_mod_date.tm_mon] + " " + str(file_mod_date.tm_year)
    folder_path = "./" + folder_name
    if os.path.exists(folder_path) == False:
        os.makedirs(folder_path)
    try:
        shutil.move(file_source, folder_path)
    except:
        pass
```

## Special Thanks To

[Dyne.org](https://github.com/dyne) - [file-extension-list](https://github.com/dyne/file-extension-list)