Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dolphinorg/pydolphin
a convenient solution to heroku web apps / APIs.
https://github.com/dolphinorg/pydolphin
Last synced: 3 months ago
JSON representation
a convenient solution to heroku web apps / APIs.
- Host: GitHub
- URL: https://github.com/dolphinorg/pydolphin
- Owner: dolphinorg
- License: mit
- Archived: true
- Created: 2021-03-11T16:47:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-03-12T16:23:24.000Z (over 3 years ago)
- Last Synced: 2024-06-28T10:37:21.807Z (5 months ago)
- Language: Python
- Size: 14.6 KB
- Stars: 5
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pydolphin
a convenient solution to heroku web apps / APIs.
# installation.
```text
pip3 install pydolphinor
pip3 install --no-cache git+https://github.com/dolphinorg/pydolphin.git
```# basic example.
```pyimport os
from flask import Flask
from pydolphin import dolphinPORT = int(os.environ.get("PORT", 6969))
app = Flask(__name__)
@app.before_first_request
def dolphin_start():
dolphin.swim()@app.route('/')
def index():
return 'hello'app.run(host='0.0.0.0', port=PORT)
```
# alternativelyyou can make a folder with `__init__.py`
with```py
from pydolphin import dolphindolphin.swim()
```# note.
=> i am currently learning js and node-js but
if you want to contribute to make dolphin
packages for them,
you can contact me t.me/midnightmadwalk.
=> use it in any python web framework and
report bug or contribute.