Skip to content

Commit

Permalink
add: pip packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
WilliamJlvt committed Oct 4, 2024
1 parent f092c44 commit b3d8b82
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,8 @@ __pycache__
*.pyc
*.pyo
*.pyd
.temp
.temp
*.secret
*.log
*.egg-info
*.egg
26 changes: 26 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
11 changes: 2 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
18 changes: 18 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -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',
)

0 comments on commit b3d8b82

Please sign in to comment.