Skip to main content

Mini Web Framework on MicroPython (Esp8266)

Project description

dupgee

Dupgee is a mini web framework developed for micro-python(Tested on esp8266).

Installation

pip install dupgee

Create Project

dupgee create newproject

Let's code in pages.py and add view to urls.py. When project has created, example views and urls already exists. Edit WIFI_SSID and WIFI_PASSWORD variables in newproject/runner.py file.

Run

This operation needs adafruit-ampy package. See also https://learn.adafruit.com/micropython-basics-load-files-and-run-code/install-ampy installation and other details.

  • Move files
ampy --port /dev/<your-serial-port> put newproject/
  • Run In host machine
ampy --port /dev/<your-serial-port> run newproject/runner.py

# or another port
ampy --port /dev/<your-serial-port> run newproject/runner.py 8000

In serial connected python interpreter

exec(open("./newproject/runner.py").read(), globals())

Test

Run dupgee Browser Curl request

Contributing

See; https://github.com/ahmetkotan/dupgee

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

dupgee-0.3.tar.gz (224.6 kB view details)

Uploaded Source

Built Distribution

dupgee-0.3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file dupgee-0.3.tar.gz.

File metadata

  • Download URL: dupgee-0.3.tar.gz
  • Upload date:
  • Size: 224.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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for dupgee-0.3.tar.gz
Algorithm Hash digest
SHA256 9534f8c0773adf45b9f7749f1211824df7a68eac9fd29ed30963267922f647d2
MD5 2d7e44443ee11b66a6819d7e00ee56d7
BLAKE2b-256 e6b290dfc653308d8e7e6a123f15d4a5679941e570a81211a5495e1fe5c63c96

See more details on using hashes here.

File details

Details for the file dupgee-0.3-py3-none-any.whl.

File metadata

  • Download URL: dupgee-0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.9

File hashes

Hashes for dupgee-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a02cd1a4001220b800d18263e0b05ab92f892dd5fbad67ff5ea98f1435f0a092
MD5 0ba129fcfcf8b1b280e2df33e003b6ea
BLAKE2b-256 015c1db17b944ab95d5873254dc27b6543f81d0cde80d09418cf85a276765ef4

See more details on using hashes here.

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