Skip to main content

Python wrapper for the Ravelry API, which is a database of knitting / crocheting patterns.

Project description

pyravelry

Release Build status codecov Commit activity License

This is python wrapper for the Ravelry API (a database of knitting / crocheting patterns).

Use of this API wrapper requires a Ravelry Account and a username and apikey as specified in the HTTP Basic Auth section of the Ravelry API Documentation. Be sure to get read/write permissions if you want full access to all of the endpoints.

Quick Start:

$ pip install pyravelry
$ python -i
>>> from pyravelry import Client, Settings
>>> settings = Settings(RAVELRY_USERNAME=..., RAVELRY_API_KEY=...)
>>> client = Client(settings=settings)
>>> results = client.search.query(query="merino", limit=10, types=["Yarn"])
>>> results.results[0].title
'MerinoSeide'
>>> results.to_pandas().loc[:, ["title"]].head()
           title
0    MerinoSeide
1    Merinosukka
2      MERINO100
3  Merino-Tussah
4    Merinosilke
>>> results.to_polars()["title"].head()
shape: (10,)
Series: 'title' [str]
[
        "MerinoSeide"
        "Merinosukka"
        "MERINO100"
        "Merino-Tussah"
        "Merinosilke"
        "Merinowol"
        "Merinosweet"
        "Merino-Soft"
        "MerinoSilk"
        "MerinoCottonSilk"
]

More information about this API wrapper can be found in the pyravelry documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyravelry-0.0.10.tar.gz (199.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyravelry-0.0.10-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file pyravelry-0.0.10.tar.gz.

File metadata

  • Download URL: pyravelry-0.0.10.tar.gz
  • Upload date:
  • Size: 199.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyravelry-0.0.10.tar.gz
Algorithm Hash digest
SHA256 6431c31037e772fa922fb733bdc41c20b32b57d8d76d65f5de8d50de3e37e2c1
MD5 bb0f1d99ed5fcfaaff7c70bb583861aa
BLAKE2b-256 49a2647a7641c624cd3425c81cabd3ff5812b0597a55da69a1921a3d9f3c5f62

See more details on using hashes here.

File details

Details for the file pyravelry-0.0.10-py3-none-any.whl.

File metadata

  • Download URL: pyravelry-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for pyravelry-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 95c5beed620731d131eeb35eebcf0a06824f83422ef1bd482d9338c3ba2e5a07
MD5 0e58f52409b919d67d2d3a82928fc74c
BLAKE2b-256 298b70861ac83a6ffb5a14d3d72029c94b2e0190bec1aa8db890cba790bb20ff

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page