adriens / auptitcafe-sdk

😋 SDK Python pour accéder aux menus du restaurant "Au p'tit café" - Nouméa, Nouvelle-Calédonie

Home Page:https://dev.to/adriens/series/23071

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PyPI - Implementation PyPI - Python Version PyPI - Wheel PyPI - Format PyPI

❔ About

Finally a Python package to make getting Au p'it café's menus a piece of (cheese) cake.😅

With this package you can:

... and get them as list of objects or csv.

👉 See it live on Kaggle 👈

🔖 Social networks

IMAGE ALT TEXT HERE

🤓 Nerd resources

🚀 Quickstart

For the impatients, here is a quick and ready to use code snippet:

# Install the package
!pip install auptitcafe --upgrade

# Make some imports
from auptitcafe.menus import Menus
import pandas as pd

# Create the main utility instance
menu_instance = Menus()

# Dump menus as a csv file
menus = 'menus.csv'
menu_instance.to_csv(menus)

# Load menus in a panda dataframe
df = pd.read_csv(menus)
# Diplay dataframe
df

Build it

poetry show --tree
poetry build
poetry install

test

poetry run pytest

Publish

poetry config pypi-token.pypi $PYPI_TOKEN
poetry publish

About

😋 SDK Python pour accéder aux menus du restaurant "Au p'tit café" - Nouméa, Nouvelle-Calédonie

https://dev.to/adriens/series/23071


Languages

Language:Python 100.0%