<commit_before># PyOpenload
python wrapper for [Openload.co](https://openload.co) [API](https://openload.co/api).

## Install
``` sh
pip install git+https://github.com/mohan3d/PyOpenload.git
```

## Usage
All methods return python dictionary
``` python
from openload import OpenLoad

openload = OpenLoad('login', 'key')

# User email
account_info = openload.account_info()
print(account_info['email'])

# Download Ticket
download_data = openload.prepare_download('file_id')
print(download_data['ticket'])                          
print(download_data['captcha_url'])                     
                     
# Download Link
download_url_data = openload.get_download_link('file_id', 'ticket', 'captcha_response')
print(download_url_data['name'])                        
print(download_url_data['url'])                         

# Upload file
openload.upload_file('file_path')
    
```<commit_msg>Add todo to README.md<commit_after># PyOpenload
python wrapper for [Openload.co](https://openload.co) [API](https://openload.co/api).

## Install
``` sh
pip install git+https://github.com/mohan3d/PyOpenload.git
```

## Usage
All methods return python dictionary
``` python
from openload import OpenLoad

openload = OpenLoad('login', 'key')

# User email
account_info = openload.account_info()
print(account_info['email'])

# Download Ticket
download_data = openload.prepare_download('file_id')
print(download_data['ticket'])                          
print(download_data['captcha_url'])                     
                     
# Download Link
download_url_data = openload.get_download_link('file_id', 'ticket', 'captcha_response')
print(download_url_data['name'])                        
print(download_url_data['url'])                         

# Upload file
openload.upload_file('file_path')
    
```

## TODO
- [ ] Tests
{'fraction_non_alphanumeric': 0.13055403181568842, 'fraction_numerical': 0.0010970927043335162, 'mean_word_length': 3.2320185614849186, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 20, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '35366', 'n_tokens_mistral': 560, 'n_tokens_neox': 529, 'n_words': 101}