Skip to main content

Realnet command line interface

Project description

realnet

How to run on linux 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.
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 command
chmod 700 .env
  • run the following commands:
python3 -m venv venv
. ./venv/bin/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.

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:
python3 -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

realnet-0.0.13.tar.gz (9.6 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

realnet-0.0.13-py3.7.egg (44.6 kB view details)

Uploaded Egg

realnet-0.0.13-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file realnet-0.0.13.tar.gz.

File metadata

  • Download URL: realnet-0.0.13.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for realnet-0.0.13.tar.gz
Algorithm Hash digest
SHA256 6f471339d2c0943f62c5b7335dd257747e80713b1f3ee5e71a7552bbd7aaa8d3
MD5 c954895a5ed75785801f51e023bc8e44
BLAKE2b-256 d534c5d692802671784258d8b8ea618770abf97f13eaaa5de12e27a1aec916b2

See more details on using hashes here.

File details

Details for the file realnet-0.0.13-py3.7.egg.

File metadata

  • Download URL: realnet-0.0.13-py3.7.egg
  • Upload date:
  • Size: 44.6 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for realnet-0.0.13-py3.7.egg
Algorithm Hash digest
SHA256 88408c31f51dc51216596614466e421786d39fb3e69ed3c184df14bd7675d62f
MD5 7e7a9d6b27d39a105e6b68f8c0667151
BLAKE2b-256 59a858ae92e702f6e89d4fe839fecb087c5885437a5134fddff64a7914cc05b6

See more details on using hashes here.

File details

Details for the file realnet-0.0.13-py3-none-any.whl.

File metadata

  • Download URL: realnet-0.0.13-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for realnet-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 935a8df87a95252f7911b121360fe5df30c24d971dedb6560a71dae332216762
MD5 d3f32ee90ad9b18e0c5146b92a02817c
BLAKE2b-256 ee28a1e5abeb84d1195b128e7ecf10a41a2673a2bacc8f85ea584dcc76a7015e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page