Skip to main content

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

realnet-0.0.18.tar.gz (18.7 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.18-py3.7.egg (70.2 kB view details)

Uploaded Egg

realnet-0.0.18-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: realnet-0.0.18.tar.gz
  • Upload date:
  • Size: 18.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.15

File hashes

Hashes for realnet-0.0.18.tar.gz
Algorithm Hash digest
SHA256 1c0447a163e891236f75e486e1f5003f95dee44a371a000d5280a4e419122ea4
MD5 128755eb9be95ab750918a34d245af98
BLAKE2b-256 657c68223d9cfc8d46bdb0475f7c3bdb53314dc9842a77fd16d626426174bbbe

See more details on using hashes here.

File details

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

File metadata

  • Download URL: realnet-0.0.18-py3.7.egg
  • Upload date:
  • Size: 70.2 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.15

File hashes

Hashes for realnet-0.0.18-py3.7.egg
Algorithm Hash digest
SHA256 87d97d1c4cc7f79f6380a930074b3b2982e5bfc2f1b728c99c158e47e9da8d03
MD5 f556e10bfd6cd76c53256a88ad0954cf
BLAKE2b-256 aebd8508704fa1c0ab6690090a28e51a416831c6bf991299f668ee07bfb184a1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: realnet-0.0.18-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.15

File hashes

Hashes for realnet-0.0.18-py3-none-any.whl
Algorithm Hash digest
SHA256 fc33d727ffd56b53c32c28ba3598ecd8bbd7a5bd7ca15a9bb11e2674016ae61f
MD5 fb3ca4a428db0cc8f45aa1b360e9a4c6
BLAKE2b-256 9bfd4e3498f4f7c38be02dac9d9ba6fcb34b66abaeb484e0d390a6157ef88240

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