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[0].title
'MerinoSeide'
>>> results.pandas.loc[:, ["title", "type_name", "record.type"]].head()
           title type_name record.type
0    MerinoSeide      yarn        Yarn
1    Merinosukka      yarn        Yarn
2      MERINO100      yarn        Yarn
3  Merino-Tussah      yarn        Yarn
4    Merinosilke      yarn        Yarn
>>> results.polars["title", "type_name", "record.type"].head()
shape: (5, 3)
┌───────────────┬───────────┬─────────────┐
│ title          type_name  record.type │
│ ---            ---        ---         │
│ str            str        str         │
╞═══════════════╪═══════════╪═════════════╡
│ MerinoSeide    yarn       Yarn        │
│ Merinosukka    yarn       Yarn        │
│ MERINO100      yarn       Yarn        │
│ Merino-Tussah  yarn       Yarn        │
│ Merinosilke    yarn       Yarn        │
└───────────────┴───────────┴─────────────┘

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.8.tar.gz (189.4 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.8-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyravelry-0.0.8.tar.gz
  • Upload date:
  • Size: 189.4 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.8.tar.gz
Algorithm Hash digest
SHA256 d70fd613e43fb31ec2930813b60c431c7647082ee616cc2176c2e6c2305a16c0
MD5 277d53432b1c39e4824db163f32df026
BLAKE2b-256 129b872fd00873fb75ecf1202d838d12cd9ed6217202b26e5fc74f2d9ee34ed7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyravelry-0.0.8-py3-none-any.whl
  • Upload date:
  • Size: 33.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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b2ff74444f96dd2b7af572e5b3f0647b211ad31a70f215a76fc45ad63f973069
MD5 89014d703ef1369aa2a2e5e0c95829a3
BLAKE2b-256 91f7be4f09b3014099cc7a7715d93d08bda1f9c98cb379f7e0b55856706da965

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