Skip to content

Commit

Permalink
setting up stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
denzven committed Jun 17, 2021
1 parent 2e14936 commit 21ca894
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
Binary file removed dist/DenzGraphingApiWrapper_py-denzven-0.0.2.tar.gz
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ Contribute

- Issue Tracker: https://github.com/denzven/DenzGraphingApiWrapper_py/issues
- Source Code: https://github.com/denzven/DenzGraphingApiWrapper_py
- Documentation = https://denzgraphingapiwrapper-py.readthedocs.io/en/latest/

Support
-------
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
[metadata]
name = DenzGraphingApiWrapper_py-denzven
version = 0.0.2
version = 0.0.3
author = Denzven
author_email = denzvenvadakkan@gmail.com
description = An ApiWrapper for the DenzGraphingApi
long_description = file: README.md
long_description_content_type = text/markdown
project_urls =
Bug Tracker = https://github.com/denzven/DenzGraphingApi_py/issues
Documentation = https://denzgraphingapiwrapper-py.readthedocs.io/en/latest/
Source = https://github.com/denzven/DenzGraphingApiWrapper_py
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Expand Down
16 changes: 0 additions & 16 deletions src/DenzGraphingApiWrapper_py/DenzGraphingApiWrapper_py.py

This file was deleted.

16 changes: 16 additions & 0 deletions src/DenzGraphingApiWrapper_py/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import urllib.parse

python_anywhere_BASEURL = "http://denzven.pythonanywhere.com/"
heroku_BASEURL = "https://denz-graphing-api-heroku.herokuapp.com/"


def py_anywhere_graph(formula_input):
formula_output = urllib.parse.quote(formula_input, safe='')
url = python_anywhere_BASEURL + f'graph?formula={formula_output}'
return url


def heroku_graph(formula_input):
formula_output = urllib.parse.quote(formula_input, safe='')
url = heroku_BASEURL + f'graph?formula={formula_output}'
return url

0 comments on commit 21ca894

Please sign in to comment.