Browse Source

Rename gnunetconnector to gnunetrest

master
juga 2 years ago
parent
commit
852138b8b6
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      pygnunetrest/example.py
  2. +1
    -1
      pygnunetrest/gnunet.py

+ 2
- 2
pygnunetrest/example.py View File

@ -6,9 +6,9 @@ import gnunet
# make instance of connector,
# without arguments it defaults to localhost, port 7776
print("\nMaking instance of connector")
conn = gnunet.GNUnetConnector()
conn = gnunet.GNUnetRest()
# it is also possible to specify host and port, for example:
# conn=gnunet.GNUnetConnector("localhost","7771")
# conn=gnunet.GNUnetRest("localhost","7771")
# test if connection is possible
print("\nTesting Connector")


+ 1
- 1
pygnunetrest/gnunet.py View File

@ -3,7 +3,7 @@ import json
import socket
class GNUnetConnector:
class GNUnetRest:
def __init__(self, host="localhost", port="7776"):
self.host = host
self.port = port


Loading…
Cancel
Save