python sdk for beeper operation
Project description
beeper-python
Python SDK for Beeper operations on BNB Smart Chain.
Features
- Deploy and manage Beeper contracts
- Token deployment and management
- Trading functionality with PancakeSwap V3
- Price calculation and impact estimation
- Wallet management
Installation
pip install beeper-python
Usage
from beeper.chain import BeeperClient
from beeper.util import BSC_MAINNET_SETTINGS, BSC_TESTNET_SETTINGS
# Initialize client
# config is BSC_TESTNET_SETTINGS or BSC_MAINNET_SETTINGS
client = BeeperClient(
config=BSC_TESTNET_SETTINGS,
wallet_address="your_wallet_address",
private_key="your_private_key"
)
# Make trades
client.make_trade(
input_token="input_token_address",
output_token="output_token_address",
amount=1000000
)
# Get price information
price = client.get_price_input(
token0="input_token_address",
token1="output_token_address",
)
Configuration
The SDK requires a configuration dictionary with the following keys:
- RPC: BNB Smart Chain RPC endpoint
- PancakeV3SwapRouter: PancakeSwap V3 router address
- PancakeV3Quoter: PancakeSwap V3 quoter address
- PancakeV3Factory: PancakeSwap V3 factory address
- PostionManage: Position manager address
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
beeper_python-0.1.2.tar.gz
(104.9 kB
view details)
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
beeper_python-0.1.2-py3-none-any.whl
(107.7 kB
view details)
File details
Details for the file beeper_python-0.1.2.tar.gz.
File metadata
- Download URL: beeper_python-0.1.2.tar.gz
- Upload date:
- Size: 104.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
323082de1c6c52253667da9c387703a03c48bac4e0b2b9131551705de7d4b8ca
|
|
| MD5 |
616dce9546ed3b2e364d84a2b16ee6e8
|
|
| BLAKE2b-256 |
7d327a30cfe1956dea457f0fc01448aff026fed161467a4e3f61210e3b173259
|
File details
Details for the file beeper_python-0.1.2-py3-none-any.whl.
File metadata
- Download URL: beeper_python-0.1.2-py3-none-any.whl
- Upload date:
- Size: 107.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dbe24dd6f3a4b94b582d080785bf08e5bb05f2b6c3f860dce6638f250f23edd
|
|
| MD5 |
3ffea7b0c4d09c56353c0e2711d7be19
|
|
| BLAKE2b-256 |
ac95290cc339b11a8fa9abb194c088cc1fcd68bccc0d8c78db0c2b1409b6f3a2
|