Skip to content

Installation

I'm The Cheese edited this page Sep 11, 2019 · 4 revisions

Installation

dfuse is on PyPi. You can install it in the following way:

   $ pipenv --python 3.7
     
    Creating a virtualenv for this project...
    Pipfile: /home/cheese/projects/community/df/Pipfile
    Using /usr/local/bin/python3.7 (3.7.3) to create virtualenv...
    ⠦ Creating virtual environment...Using base prefix '/usr/local'
    New python executable in /home/cheese/.local/share/virtualenvs/df-D0gNPh01/bin/python3.7
    Also creating executable in /home/cheese/.local/share/virtualenvs/df-D0gNPh01/bin/python
    Installing setuptools, pip, wheel...
    done.
    Running virtualenv with interpreter /usr/local/bin/python3.7

   ✔ Successfully created virtual environment! 

   $ pipenv shell
     
     Launching subshell in virtual environment...
     . /home/cheese/.local/share/virtualenvs/df-D0gNPh01/bin/activate

   $ (df) pipenv install dfuse

    Installing dfuse...
    Adding dfuse to Pipfile's [packages]...
    ✔ Installation Succeeded 
    Pipfile.lock not found, creating...
    Locking [dev-packages] dependencies...
    Locking [packages] dependencies...
    ✔ Success! 
    Updated Pipfile.lock (3d0870)!
    Installing dependencies from Pipfile.lock (3d0870)...
    🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 13/13 — 00:00:04


   $ (df) pipenv graph

     dfuse==0.0.3
      - grpcio [required: >=1.23.0, installed: 1.23.0]
        - six [required: >=1.5.2, installed: 1.12.0]
      - grpcio-tools [required: >=1.23.0, installed: 1.23.0]
        - grpcio [required: >=1.23.0, installed: 1.23.0]
          - six [required: >=1.5.2, installed: 1.12.0]
        - protobuf [required: >=3.5.0.post1, installed: 3.9.1]
          - setuptools [required: Any, installed: 41.2.0]
          - six [required: >=1.9, installed: 1.12.0]
      - python-decouple [required: >=3.1, installed: 3.1]
      - requests [required: >=2.22.0, installed: 2.22.0]
        - certifi [required: >=2017.4.17, installed: 2019.6.16]
        - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
        - idna [required: >=2.5,<2.9, installed: 2.8]
        - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.3]
      - requests-cache [required: >=0.5.2, installed: 0.5.2]
        - requests [required: >=1.1.0, installed: 2.22.0]
          - certifi [required: >=2017.4.17, installed: 2019.6.16]
          - chardet [required: >=3.0.2,<3.1.0, installed: 3.0.4]
          - idna [required: >=2.5,<2.9, installed: 2.8]
          - urllib3 [required: >=1.21.1,<1.26,!=1.25.1,!=1.25.0, installed: 1.25.3]
      - websockets [required: >=8.0.2, installed: 8.0.2]


    $ (df) echo "API_KEY = server_b545f3412e40f788b624c26d1b45db84" > .env

    $ (df) echo "BASE_URL = https://mainnet.eos.dfuse.io" > .env

    $ (df) echo "BLOCK_TIME_URL = /v0/block_id/by_time" > .env

    $ (df) echo "TRX_URL = /v0/transactions" > .env

    $ (df) echo "STATE_BASE_URL = /v0/state" > .env

    $ (df) echo "WSS_URL = wss://mainnet.eos.dfuse.io/v1/stream" > .env

    $ (df) pipenv install ipython --dev

    $ (df) ipython

      Python 3.7.3 (default, May 11 2019, 18:02:18) 
      Type 'copyright', 'credits' or 'license' for more information
      IPython 7.8.0 -- An enhanced Interactive Python. Type '?' for help.

      In [1]: import dfuse                                                                                                                                                    

      In [2]: from dfuse import Dfuse                                                                                                                                         

      In [3]: d = Dfuse()                                                                                  



    





Clone this wiki locally