semvec/pypi-packages huggingface dataset:
pytheline 0.0.4
A Python wrapper using the undocumented 'De Lijn' API
Requires Python: >=3

# pyTheLine

A Python wrapper using the undocumented 'De Lijn' API

Shoutout to the De Mey brothers to start reverse-engineering the API:
https://demey.io/reverse-engineering-belgium-de-lijn/
And creating some very nice documentation:
http://docs.delijn.apiary.io/
pyblazeb2 0.0.23
A compact library for interacting with Backblaze b2 buckets

# Pyblazeb2 
---------------

    Pyblazeb2 is a Python 3 module for accessing the Backblaze B2 API


    To install run: 

```python 
 pip install pyblazeb2
```

# Examples
-------------------------------

    from pyblazeb2 import BackBlazeB2
    b2 = BackBlazeB2(account_id, app_key)

    # Upload an entire directory concurrently
    b2.recursive_upload('/path/to/foobar', bucket_name='my-bucket', multithread=True)

    # Upload a single file without a password
    b2.upload_file('/path/to/file.txt', bucket_name='baz')

    # Upload a single file, then download
    b2.upload_file('/path/to/secrets.txt', bucket_name='baz')
    response = b2.download_file_by_name('/path/to/myfile.txt', 'savedfile.txt')

    # List all of your buckets
    buckets = b2.list_buckets()

    # Create a bucket
    response = b2.create_bucket('new-bucket', bucket_type='allPrivate')

    # Download a file by name
    response = b2.download_file_by_name('/path/to/myfile.txt', 'savedfile.txt')

    # Authorize download for a private file
    bucket_id = "" # Id of bucket which you want authorize download file
    bucket_name = "" # Verbose name of bucket
    file_name_prefix = ""
    url_authorized_download = b2.get_download_authorization(
        bucket_id=bucket_id, bucket_name=bucket_name,
        file_name_prefix=file_name_prefix)
    # The response some looks like this:
    # https://f345.backblazeb2.com/file/photos/cute/kitten.jpg?Authorization=3_20160803004041_53982a92f631a8c7303e3266_d940c7f5ee17cd1de3758aaacf1024188bc0cd0b_000_20160804004041_0006_dnld

    # Download with authorized url
    b2.download_file_with_authorized_url(url_authorized_download, 'file_name.log')
serverless-discovery-sdk 0.0.5
Serverless Service Discovery SDK

# serverless-discovery-sdk-python

*The last serverless micro-service you'll ever wonder how to find*

The AWS Serverless Discovery SDK interacts with a discovery microservice to discover endpoints for micro-services written for a serverless architecture. This is similar to clustered services such as [Consul](https://www.consul.io/intro/index.html) or [ZooKeeper](https://zookeeper.apache.org/), but without the concept of instances or nodes that must be monitored for online state. This library is designed to support use both on the server side (for service-to-service lookups) and on the browser/client side.

This project contains the Python bindings for the discovery service; Other bindings can be found in the [AdAstraDev](https://github.com/adastradev) organization on GitHub

## Installation 
```sh
python3 -m pip install serverless-discovery-sdk
```
## Usage
### Python
```python
from serverless_discovery_sdk import DiscoverySdk
sdk = DiscoverySdk('https://abcdefghij.execute-api.us-east-1.amazonaws.com/prod')
endpoints = sdk.lookupService('my-service', 'dev')
```
pyfinex 1.0.3
Python wrapper for Bitfinex API v1 and v2

pyfinex
======
Python wrapper for Bitfinex API.

Dependencies
======
Requests library is required.

Usage
======
Include the pyfinex module and use it as a toolbox. For trading, a key and a secret key must be provided.


```python
import pyfinex

API_KEY = 'insert key'
API_SECRET = 'insert secret'

resp = pyfinex.v1.positions.active(key=API_KEY, secret_key=API_SECRET)
resp = pyfinex.v1.public.ticker(symbol='btcusd')
```

Function names are organized for better coding

**Function names are referred in part to the api doc's html, which you can see [Bitfinex API web page](http://docs.bitfinex.com/).**
**Required params to build the request's url are coded in the function's args, other query params are to be added acording to api doc**

**BEWARE: some inputs varies from v1 to v2. Example: v1>> 'BTCUSD' v2>> 'tBTCUSD'**

All documented API calls are implemented!

Examples
======
### Get the latest BTCUSD price
```python
resp = pyfinex.v1.public.ticker(symbol='btcusd')
```
### View your active orders
```python
resp = pyfinex.v1.positions.active(API_KEY,API_SECRET)
```
### Get the BTCUSD order book
```python
resp = pyfinex.v1.public.order_book(symbol='btcusd')
```
### Get the last BTCUSD 1m candle 
```python
resp = pyfinex.v2.public.candles(Symbol='tBTCUSD', TimeFrame='1m', Section='last')
```

Note: in v2 the parameters are capital case.
### Submit a new order
For example, if you'd like to buy 0.001 BTC as 0.01 BTC/USD, you need to specify the parameters acording to the api doc. You may parse the response to get the order id for future use.

	resp = pyfinex.v1.orders.new(symbol="BTCUSD", amount=0.001, price=0.01, side='buy', type='market')

### In case there is a new call you can do it yourself!:
```python
pyfinex.api.request(authenticate=True, 
    key=API_KEY, 
    secret_key=API_SECRET, 
    version=1, 
    endpoint='new/api/call/here', 
    method='POST', 
    body_params={}, 
    query_params={})
```

Test
======
1. Replace your keys in .env.example file, and rename it to .env
1. Include your unit tests as functions in a test_vX_*.py file
    ```python
    def test_ticker():
        resp = pyfinex.v1.public.ticker(symbol='btcusd')
        resp['mid']
    ```
1. Run the tests using pytest

Known Issues
======
- No

TODO
=====
- Test every endpoint


Contributing
======
1. Create an issue and discuss.
1. Create a feature branch containing only your fix or feature.
1. Add tests, please!!
1. Create a pull request.
1. Thanks!

References
======
- [https://github.com/scottjbarr/bitfinex](https://github.com/scottjbarr/bitfinex)
- [https://github.com/jimako1989/bitfinexpy](https://github.com/jimako1989/bitfinexpy)
- [Bitfinex official API wrapper for Ruby](https://github.com/bitfinexcom/bitfinex-api-rb)
- [Bitfinex v1 API doc](https://bitfinex.readme.io/v1/docs)
- [Bitfinex v2 API doc](https://bitfinex.readme.io/v2/docs)

Licence
======
The MIT License (MIT)

Copyright (c) 2018 faberquisque

See [LICENSE.md](LICENSE.md)