diff --git a/.gitignore b/.gitignore index 352c3dc..6c20a79 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,8 @@ __pycache__ *.pyc *.pyo *.pyd -.temp \ No newline at end of file +.temp +*.secret +*.log +*.egg-info +*.egg \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8aae08d --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +## +## Hand-e project, 2024 +## hostasphere python profiler api +## File description: +## Makefile +## + +TOKEN_FILE = token.secret + +all: clean build upload + +build: + python setup.py sdist bdist_wheel + +upload: + @echo "Uploading to PyPI..." + @TOKEN=$$(cat $(TOKEN_FILE)) && \ + twine upload -r pypi -u __token__ -p $$TOKEN dist/* + +clean: + rm -rf dist build *.egg-info + +fclean: clean + rm -rf .tox .pytest_cache .coverage + +.PHONY: all build upload clean generate_grpc diff --git a/README.md b/README.md index e4219bd..3b8baee 100644 --- a/README.md +++ b/README.md @@ -7,18 +7,11 @@ from the following sources: - https://llm-price.com ## Installation -~~You can install the package using pip:~~ (not yet available) - -~~pip install llm_price_scraper~~ - -To install the package, you can clone the repository and install it using the following commands: +You can install the package using pip: ```bash -git clone git@github.com:WilliamJlvt/llm_price_scraper.git -cd llm_price_scraper -pip install . +pip install llm-price-scraper==1.0.0 ``` - ## Usage Once you have installed the scrapper, you can use it to quickly retrieve the current pricing information from the website. ```python diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..877db07 --- /dev/null +++ b/setup.py @@ -0,0 +1,18 @@ +from setuptools import setup, find_packages + +setup( + name="llm_price_scraper", + version="1.0.0", + packages=find_packages(), + install_requires=[ + "requests==2.32.3", + "beautifulsoup4==4.12.3" + ], + author="WilliamJlvt", + description="A simple Python SDK to scrape and retrieve pricing information for Large Language Models (LLMs) from an external webpage, with structured models for easy integration and usage.", + author_email="william.jolivet@epitech.eu", + long_description=open('README.md').read(), + long_description_content_type='text/markdown', + url="https://github.com/WilliamJlvt/llm_price_scraper", + python_requires='>=3.6', +)