Realnet command line interface
Project description
realnet
How to run on linux/windows using pip (deployed version)
The realnet-server needs to be configured and running. How to do that can be found in the readme.md for https://github.com/virtual-space/realnet-server/
- Create a folder and go to it.
(linux)
mkdir realnet
cd realnet
create a .env file with the following content
REALNET_TOKEN='[generated by realnet auth token]'
REALNET_CLIENT_KEY='[Retrieve from database app table]'
REALNET_CLIENT_SECRET='[Retrieve from database app table]'
REALNET_URL='[get from realnet-server serve or use 'https://api.realnet.io' for production]'
- run the following commands
(linux or Powershell)
python -m venv venv
. ./venv/bin/activate
pip install realnet
(Windows)
python -m venv venv
venv\Scripts\activate
pip install realnet
The realnet CLI needs a valid, unexpired token to interface with realnet-server. Run the following and paste the output token into the realnet .env. Use the username and password you defined in the realnet-server .env. Make sure to use "" around variables on Windows.
realnet auth token --username="[]" --password="[]"
- finally to start realnet and see available commands, run the following command:
realnet -h
How to run on linux from source
The realnet server needs to be configured and running. How to do that can be found in the readme.md for https://github.com/virtual-space/realnet-server/
- Clone out the repo
git clone https://github.com/virtual-space/realnet/realnet.git
- Go to the repo root folder
cd realnet
- In the repo root folder create an .env file with the following content:
REALNET_TOKEN='[generated by realnet auth token]'
REALNET_CLIENT_KEY='[Retrieve from database app table]'
REALNET_CLIENT_SECRET='[Retrieve from database app table]'
REALNET_URL='[get from realnet-server serve or use 'https://api.realnet.io' for production]'
- run command
chmod 700 .env
- run the following commands:
python -m venv venv
. ./venv/bin/activate
python setup.py install
The realnet CLI needs a valid, unexpired token to interface with realnet-server. Run the following and paste the output token into the realnet .env. Use the username and password you defined in the realnet-server .env.
realnet auth token --username='[]' --password='[]'
- finally to start realnet and see available commands, run the following command:
realnet -h
installation notes (python setup.py | pip install)
You may need to manually install some dependencies. The install command should tell you what is missing.
The Cryptography module takes a long time to compile.
Below is an incomplete list of installation instructions for dependencies. If you're not doing this on a fresh installation, you should run python setup.py install or pip install realnet to see what you need first.
- Inside VENV
pip install --upgrade pip
pip install setuptools-rust
- Outside VENV postgreSQL (pg_config is missing)
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get -y install postgresql
c/c++ compilers (gcc/g++ is missing)
sudo apt update
sudo apt install build-essential
Optional Man pages
sudo apt-get install manpages-dev
To test the C & C++ compiler installations run these commands:
gcc --version
g++ --version
bluetooth dev tools (bluetooth/bluetooth.h is missing)
sudo apt-get install libbluetooth-dev
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
Built Distributions
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 realnet-0.0.39.tar.gz.
File metadata
- Download URL: realnet-0.0.39.tar.gz
- Upload date:
- Size: 27.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
daf8bda9ff32acd06ee023ff0dfc80466ed757c52ce40945bedf5022b3f1f835
|
|
| MD5 |
817bb87c24ce790aa78c4792b0ef8262
|
|
| BLAKE2b-256 |
b381e055b90a593d9a5ac1d1c9e16d17b7e88cfaf90c12b8bc584391a9c8fca9
|
File details
Details for the file realnet-0.0.39-py3.7.egg.
File metadata
- Download URL: realnet-0.0.39-py3.7.egg
- Upload date:
- Size: 911.1 kB
- Tags: Egg
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
267fe0a6433a8cd5621cdc085b3b357b854cd1c59dc03d774db1c02af2d6b173
|
|
| MD5 |
9342a5f75d70b0a9334aac07180a84e1
|
|
| BLAKE2b-256 |
891e36f3e56e229cf6d0c1673ee6fb4c4b8312485132001ae3451738a6cd03d0
|
File details
Details for the file realnet-0.0.39-py3-none-any.whl.
File metadata
- Download URL: realnet-0.0.39-py3-none-any.whl
- Upload date:
- Size: 841.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56fa33c3fa201c7371a1014dd2389b68e314b726e328d57a9be0d04f7df6b1aa
|
|
| MD5 |
75b62eec68b8c4df6e85d41bdd269eb6
|
|
| BLAKE2b-256 |
7551a8d4a2bd8b95d79e588236561e0f763a57adab40e5d3f6b56478249a29ff
|