Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions python_picnic_api/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ def search(self, term: str):
path = "/search?search_term=" + term
return self._get(path)

def get_product(self, product_id: str):
path = "/product/{}".format(product_id)
return self._get(path)

def get_lists(self, list_id: str = None):
if list_id:
path = "/lists/" + list_id
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.
33 changes: 33 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from setuptools import setup, find_packages
import sys

#if sys.version_info < (3, 6):
# sys.exit('Sorry, Python < 3.6 is not supported')

#with open("README.md", "r") as fh:
# long_description = fh.read()

setup(
name='python-picnic-api',
version='1.0.0',
description='Unofficial picnic api for python',
#long_description=long_description,
#long_description_content_type="text/markdown",
author='someone',
author_email='[email protected]',
url='https://github.com/Sikerdebaard/python-picnic-api',
python_requires=">=3.6", # example
packages=find_packages(), # same as name
install_requires=[
'certifi>=2020.12.5',
'chardet>=3.0.4',
'idna>=2.10',
'requests>=2.25.0',
'urllib3>=1.26.2',
],
entry_points={
#'console_scripts': [
# 'dcmrtstruct2nii=dcmrtstruct2nii.cli.dcmrtstruct2nii:run',
#],
},
)