Skip to main content

A Flask Web Application for PyGate gRPC client (Powergate)

Project description

pygate-webapp

A Filecoin Flask template application for Python developers using Textile.io's Powergate and the Pygate gRPC client.

screencap

Installation

  • Clone files and cd to directory:
    git clone https://github.com/pygate/pygate-webapp && cd pygate-webapp
  • Set up virtualenv:
    virtualenv venv
  • Activate virtualenv:
    source venv/bin/activate
  • Install requirements:
    pip install -r requirements.txt
  • Create the application database:
    python create_db.py
  • pygate-webapp is built using the Python Flask framework. To start the built-in development server:
    python run.py
  • Go to localhost:5000 in your browser to use the app.
  • This is a development release of the pygate-webapp. It is designed to work with a Dockerized Localnet Powergate. It assumed this is running at the 127.0.0.1:5002 address. You can change the POWERGATE_ADDRESS in the config.py file.

Features

  • Upload a file or multiple files from your local machine to the Filecoin network.
  • Download them from Filecoin back to your local machine.
  • Check Wallet balances.
  • Change Filecoin Filesystem (FFS) configuration settings and push them to files in storage.
  • Review logs of your activities in the Pygate webapp.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygate_webapp-0.1.0.tar.gz (218.1 kB view hashes)

Uploaded Source

Built Distribution

pygate_webapp-0.1.0-py3-none-any.whl (223.1 kB view hashes)

Uploaded Python 3

Supported by

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