semvec/pypi-packages huggingface dataset:
UpStorageApiClient 1.0.1
UpStorage Api Client.
Keywords: python,storage,api,upstorage,UpStorageApiClient

## UpStorageClientApi

### UpStorage Service Api.

* `Uploading Files`
* `Deleting Files`
* `Validating Cerdentails`
* `Listing Files`

<br>

## Installation

1. Get a free API Key at [https://example.com](https://example.com)

2. Install Library Using `pip`
   ```shell script
   python3 pip install UpStorageApiClient
   ```
   
3. Or Download Files With Git
   ```sh
   git clone https://github.com/user/repo
   ```
   
4. Import Class
   ```python
   from UpStorageApiClient.api import UpStorageBucket
   ```
   
5. Authenticate with the api
   ```python
   bucket = UpStorageBucket(auth_token, api_key)
   ```
   
6. Make A Request In This Case `upload`
   ```python
   bucket.upload(file='test.txt', is_private=True)
   
   
   Output: {'file': 'https://example/file.txt/'}
   ```
   `file: path of the file or File Object you want to upload.`
   `is_private: file types: [public, private] Default: False`
   
7. Get All `File` From Bucket
   ```python
   bucket.get_all_files()
   
   Output: {'url': 'https://example/file.png/', 'is_private': 'True', ...}
   ```
8. You can delete File too.But For That You Have to pass the file name.if foldername exists then also that too.This is specificly made for the backend Storage System
   ````python
   bucket.delete(file_name='myfile.txt')
   ````
dpy-button-utils 1.1.0
An extension for discord.py that allows your bot to use buttons
Requires Python: >=3.8

# Usage

## ButtonPaginator

```python
from discord.ext import commands
from dpy_button_utils import ButtonPaginator

bot = commands.Bot(command_prefix="!", help_command=None)

@bot.command()
async def page_plain_text(ctx: commands.Context):
    paginator = ButtonPaginator(bot, messages=[f"Option {x}" for x in range(10)], timeout=10)
    await paginator.run(ctx)


@bot.command()
async def page_embeds(ctx: commands.Context):
    paginator = ButtonPaginator(bot, embeds=[
        discord.Embed(title="bonk", description=f"Option {x}") for x in range(10)
    ])
    await paginator.run(ctx)


bot.run("TOKEN")
```

After the paginator is done, you can access the page it left off on with `paginator.counter`.

## ButtonConfirmation

```python
from discord.ext import commands

from dpy_button_utils.confirmation import ButtonConfirmation

bot = commands.Bot(command_prefix="!", help_command=None)

@bot.command()
async def confirm(ctx: commands.Context):
    if await ButtonConfirmation(ctx, "Do the bad thing?", destructive=True, confirm="YES", cancel="no pls").run():
        await ctx.send("yes :D")
    else:
        await ctx.send(":(")


@bot.command()
async def confirm2(ctx: commands.Context):
    if await ButtonConfirmation(ctx, "Do the thing?", destructive=False, confirm="YES", cancel="no pls").run():
        await ctx.send("yes :D")
    else:
        await ctx.send(":(")

bot.run("TOKEN")
```

`ButtonConfirmation` takes a few different keyword arguments, after the `Context` and `message`.
 
 - `destructive` - can either be `True` or `False`. `True` causes a red confirm button, and `False` causes a blue one
 - `timeout` - Time in seconds for the confirmation to auto-cancel
 - `confirm` - Confirmation button label
 - `cancel` - Cancel button label
 - `confirm_message` - Text to change to on a confirmation
 - `cancel_message` - Text to change to on a cancel
 
 The defaults are:
 - `destructive` - False
 - `timeout` - 60
 - `confirm` - Confirm
 - `cancel` - Cancel
 - `confirm_message` - `None` - this appends `Confirmed` to the original message
 - `cancel_message` - `None` - this appends `Cancelled` to the original message
Python-Peatio 1.4.0
Python Package for Openware Peatio Cryptocurrency Exchange & Accounting Software
Keywords: python,peatio,crypto,crypto currency,open source,exchanges,open source exchange,openware exchange

## Open Source Peatio Deployed Exchange API

This is an unofficial Python wrapper for the [Peatio exchange REST API v2](https://www.openware.com/sdk/2.3/docs/peatio/api/peatio-user-api-v2.html). I am in no way affiliated with Openware Peatio Project, use at your own risk.

If you came here looking for the exchange to purchase cryptocurrencies, then go [here](https://www.binance.com/en). 

If you want to automate interactions with Peatio Exchanges stick around.

# Source code

Link to **[Source Code](https://github.com/athenasaurav/Python_Peatio)**

# Features
   * Implementation of all General, Market Data and Account endpoints.
   * Simple handling of authentication
   * No need to generate timestamps yourself, the wrapper does it for you
   * Response exception handling
   * Symbol Depth Cache
   * Kline/Candle fetching function
   * Withdraw functionality
   * Deposit addresses
   * API Trading


## Quick Start

Register an account with a Peatio Exchange.

Generate an API Key and API Secret.

# Install
```
pip install Python_Peatio
```

# To Use

```
from Python_Peatio.Auth import Auth
auth = Auth(api_key, api_secret)
```

# Get Nonce and Signature
```
auth.signed_param()
```

# To get account balance of all the currency on exchange
```
from Python_Peatio.Accounts import Accounts
Accounts = Accounts(api_key, api_secret)
balances = Accounts.all_currency_balance(
    URL='your http peatio url')
```

# To place an BUY order
```
from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.create_limit_order(
    URL='your http peatio url',
    market = 'symbol of cryptocurrency pair',
    side='buy',
    volume='0.002',
    price='38000')
```

# To place an SELL order
```
from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.create_limit_order(
    URL='your http peatio url',
    market = 'symbol of cryptocurrency pair',
    side='Sell',
    volume='0.002',
    price='38000')
```

# To cancel an Buy or Sell order

```
from Python_Peatio.Market import Market
Market = Market(api_key, api_secret)
order = Market.id_cancel(
    URL='your http peatio url',
    id = buy or sell id to cancel)

```

## All the use cases will be uploaded soon