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.9.tar.gz (189.3 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.9-py3-none-any.whl (33.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyravelry-0.0.9.tar.gz
  • Upload date:
  • Size: 189.3 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.9.tar.gz
Algorithm Hash digest
SHA256 408d39cfd43cdcedcd20dadb37156282409162306212f9d6578f91cd92e575d5
MD5 9483077fec4c8039108a5c298ab2e64a
BLAKE2b-256 ef90ff34c6db7b3e9409e82ca822b2281bdd794086ca6be7f038c34c59c86ff3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyravelry-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 33.4 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.9-py3-none-any.whl
Algorithm Hash digest
SHA256 0a90f80647d7aaf3057ff3c69b3cb5c75a08d2095dd0de5815adf27ca9b0d8a2
MD5 fd86f78b14bf5e4861c80f523e371839
BLAKE2b-256 65aba089376b3e58e023d9a9f0e3eaceca52673271912ac9a083564f6c01b4fe

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