Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
denzven committed Jun 17, 2021
0 parents commit dc96a5b
Show file tree
Hide file tree
Showing 15 changed files with 114 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2021] [Denzven]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# DenzGraphingApiWrapper_py
16 changes: 16 additions & 0 deletions build/lib/DenzGraphingApiWrapper_py/DenzGraphingApiWrapper_py.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
Empty file.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[build-system]
requires = [
"setuptools>=42",
"wheel"
]
build-backend = "setuptools.build_meta"
23 changes: 23 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[metadata]
name = DenzGraphingApiWrapper_py-denzven
version = 0.0.2
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
classifiers =
Programming Language :: Python :: 3
License :: OSI Approved :: MIT License
Operating System :: OS Independent

[options]
package_dir =
= src
packages = find:
python_requires = >=3.6

[options.packages.find]
where = src
16 changes: 16 additions & 0 deletions src/DenzGraphingApiWrapper_py/DenzGraphingApiWrapper_py.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
Empty file.
18 changes: 18 additions & 0 deletions src/DenzGraphingApiWrapper_py_denzven.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Metadata-Version: 2.1
Name: DenzGraphingApiWrapper-py-denzven
Version: 0.0.2
Summary: An ApiWrapper for the DenzGraphingApi
Home-page: UNKNOWN
Author: Denzven
Author-email: denzvenvadakkan@gmail.com
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/denzven/DenzGraphingApi_py/issues
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# DenzGraphingApiWrapper_py

9 changes: 9 additions & 0 deletions src/DenzGraphingApiWrapper_py_denzven.egg-info/SOURCES.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
README.md
pyproject.toml
setup.cfg
src/DenzGraphingApiWrapper_py/DenzGraphingApiWrapper_py.py
src/DenzGraphingApiWrapper_py/__init__.py
src/DenzGraphingApiWrapper_py_denzven.egg-info/PKG-INFO
src/DenzGraphingApiWrapper_py_denzven.egg-info/SOURCES.txt
src/DenzGraphingApiWrapper_py_denzven.egg-info/dependency_links.txt
src/DenzGraphingApiWrapper_py_denzven.egg-info/top_level.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DenzGraphingApiWrapper_py

0 comments on commit dc96a5b

Please sign in to comment.