Metadata-Version: 2.1
Name: disboxpy
Version: 1.0.0rc0
Summary: A perfectly asynchronous DisBox API framework.
Author: inREZy
Author-email: xardmax2000@gmail.com
Description-Content-Type: text/markdown
Requires-Dist: httpx

# disboxpy
A perfectly asynchronous DisBox API framework.
## How to install
- install this package with pip (later)
```sh
pip install disboxpy
```
- import to your Python project
```python
from disboxpy import DisBox

client = DisBox(your_webhook_url)
```
## How to use
### For example, you can get information about any file by id or file's name.
```python
import asyncio

async def main():
  print(await client.get_file_info(10704, "test folder"))

if __name__ == "__main__":
  asyncio.run(main())
```
Output:
```
{
  'id': 10704,
  'parent_id': 10636,
  'name': 'test_image.jpg',
  'type': 'file',
  'size': 48367,
  'content': ['1164839406260203542'],
  'created_at': '2023-10-20T08:15:55.292Z',
  'updated_at': '2023-10-26T17:31:29.159Z'
}
```
### Or if you want to download something
```python
import asyncio

async def main():
  await client.download_file(10704, "test folder")

if __name__ == "__main__":
  asyncio.run(main())
```
Output:
```
[FILE] test_image.jpg file is successfully downloaded! (47.23 KB)
```

Other examples in `examples` directory. You can check it.
## Todo
- upload_file & upload_folder
- delete_file & delete_folder
- rename_file & rename_folder
