A simple sdk for working with LocalBitcoins API
Project description
localbitcoins-sdk
A simple library for working with LocalBitcoins API
I created this library to make it easier to use the LocalBitcoins API.
The library is very simple.
It has just one object Client, with one custom method send_request.
How to use it?
Install it
pip install localbitcoins-sdk
Use it
# Import the Client
from lb_sdk import Client
# Create a Client object with the hmac key and the hmac secret from localbitcoins.
client = Client('your-hmac-key-here', 'your-hmac-secret-here')
# Send a request and get a response data.
data = client.send_request('/api/myself/')
# By default the client uses the get request method, but you can send a post request.
data = client.send_request('/api/logout/', 'post')
# Or you can send a request with any parameters.
params = {
'trade_type': 'LOCAL_SELL',
'currency': 'RUB',
'countrycode': 'RU',
}
data = client.send_request('/api/ads/', params=params)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file localbitcoins-sdk-0.0.4.tar.gz.
File metadata
- Download URL: localbitcoins-sdk-0.0.4.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a2dd733283730a9ed91c40d790689edad1c15ad9b130f5012a0694ebdb0a0f4
|
|
| MD5 |
d1575605d0d246683d238f0c7d37746d
|
|
| BLAKE2b-256 |
2fcd0fa57c46c26769eded4663c9e3bbd94cd2c96a9155828f5e3e470c8b1a25
|
File details
Details for the file localbitcoins_sdk-0.0.4-py3-none-any.whl.
File metadata
- Download URL: localbitcoins_sdk-0.0.4-py3-none-any.whl
- Upload date:
- Size: 18.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.1 requests/2.26.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f25cf8283fa9f154b9dada67ff0635853b06631e5d624fa72017e1e595fc74bf
|
|
| MD5 |
8ec04a7f1889448bdd1eb37dbe0c9bf3
|
|
| BLAKE2b-256 |
76e195c4d17b5b9ea37441f6a480ef01c21d593d8d0e4df79bc63b9c0fe99429
|