Web3-gear 
Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more (You should give priority to using Thor's RESTful API).
Working with Thor Builtins will make Web3-Gear more usable.
Quick Start
Installation
On OS X
- Python 3.7+ support
-
Install the system-dependecies
brew install openssl export CFLAGS="-I$(brew --prefix openssl)/include $CFLAGS" export LDFLAGS="-L$(brew --prefix openssl)/lib $LDFLAGS" -
Installation of Web3-Gear and it's dependent Python packages via PyPI
pip3 install web3-gear
On Ubuntu
- Python 3.7+ support
-
Install the system-dependecies
sudo apt-get install build-essential libssl-dev python-dev -
Use a virtual environment to isolate your web3-gear project
python3 -m venv thor-venv source thor-venv/bin/activate -
Installation of Web3-Gear and it's dependent Python packages via PyPI
pip3 install web3-gear
Note that you can activate and deactivate your virtual environment now
source thor-venv/bin/activate
deactivate
See https://docs.python.org/3/library/venv.html for more information
On Windows
- Python 3.7+ support
-
Install Visual C++ Build Tools.
-
Install scrypt-py use the precompiled wheels.
-
Installation of Web3-Gear and it's dependent Python packages via PyPI
pip3 install web3-gear
Run
Installing through pip will make the web3-gear command available on your machine (a running thor client is required)
web3-gear
This will run web3-gear on 127.0.0.1:8545.
You can change its default behavior with the following parameters:
- host: rpc service host, eg:
--host 127.0.0.1 - port: rpc service port, eg:
--port 8545 - endpoint: thor restful service endpoint, eg:
--endpoint http://127.0.0.1:8669 - keystore: keystore file path, eg:
--keystore /Users/(username)/keystore), default=thor stand-alone(solo) built-in accounts - passcode: passcode of keystore, eg:
--passcode xxxxxxxx - debug: bool default=false, whether to display debug logs, eg:
--debug true - log: bool default=false, whether to display rpc logs, eg:
--log false
Work with Remix
Change the Remix environment to Web3 provide.
Work with Truffle
- Truffle 4.0.6+ support
Modify the configuration of truffle first(truffle.js):
module.exports = {
networks: {
development: {
host: "localhost",
port: 8545,
network_id: "*" // Match any network id
}
}
};
Then you can use truffle's command line tool.
There are some projects based on truffle, can use them for testing:
Metadata
Release files for web3-gear 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| web3-gear-2.1.1.tar.gz | 15.4 kB | Without provenance | Details for web3-gear-2.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| web3_gear-2.1.1-py36-none-any.whl | Python 3.6 | none | any | Details for web3_gear-2.1.1-py36-none-any.whl |
Total release size: 31.5 kB
Release files / web3-gear-2.1.1.tar.gz
| Download URL | web3-gear-2.1.1.tar.gz |
|---|---|
| Size | 15.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
52046233e716e5cc89fb6b2917892374c6433b32e38590aa3598cf5b698a3513
|
|
BLAKE2b-256 checksum How to use checksums |
d5ed65267b3fb603639b11810af32484ab42bc45008e2d24912afa1a9027d1b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Release files / web3_gear-2.1.1-py36-none-any.whl
| Download URL | web3_gear-2.1.1-py36-none-any.whl |
|---|---|
| Size | 16.1 kB |
| Tags | Python 3.6 |
|
SHA-256 checksum How to use checksums |
853fbe4f3ba4519d80c6bacacd45b7fb0cba314c6f980f7a0bc8920fa2d6ece5
|
|
BLAKE2b-256 checksum How to use checksums |
bb8ae877d7620d5ce5290c02a32bacec570aeb11c13c35eb8a56418991f20206
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10
|
Security for web3-gear 2.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.