Skip to main content

A fast, simple API for PCPartPicker.com.

Project description

pcpartpicker

Build Status Coverage Status

This is an unofficial Python 3.7+ API for the website pcpartpicker.com. Written using async code and multiprocessing for efficient data retrieval. This package is currently in beta.

Installation:

pip install pcpartpicker

Examples:

Retrieving supported API regions:

from pcpartpicker import API

api = API()
print(api.supported_regions)
>>> {'be', 'us', 'it', 'uk', 'ie', 'nz', 'de', 'ca', 'au', 'fr', 'se', 'es', 'in'}

Retrieving currently selected region (default is US):

from pcpartpicker import API

api = API()
print(api.region)
>>> us

Creating an API object with a different default region:

from pcpartpicker import API

api = API("de")
print(api.region)
>>> de

Changing the default region:

from pcpartpicker import API

api = API()
api.set_region("de")
print(api.region)
>>> de

Retrieving supported part list:

from pcpartpicker import API

api = API()
print(api.supported_parts)
>>> {'wireless-network-card', 'case-fan', 'cpu', 'cpu-cooler', 'headphones', 'motherboard', 'monitor', 'internal-hard-drive', 'external-hard-drive', 'ups', 'fan-controller', 'case', 'keyboard', 'mouse', 'wired-network-card', 'sound-card', 'video-card', 'speakers', 'optical-drive', 'power-supply', 'thermal-paste', 'memory'}

Retrieving all part data:

from pcpartpicker import API

api = API()
part_data = api.retrieve_all()

Retrieving specific part data:

from pcpartpicker import API

api = API()
cpu_data = api.retrieve("cpu")

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

pcpartpicker-0.1.3.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

pcpartpicker-0.1.3-py3-none-any.whl (29.2 kB view details)

Uploaded Python 3

File details

Details for the file pcpartpicker-0.1.3.tar.gz.

File metadata

  • Download URL: pcpartpicker-0.1.3.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pcpartpicker-0.1.3.tar.gz
Algorithm Hash digest
SHA256 26ae6304876c00f2a59f0c1a239a5f6ebef8180363a12b82170642d0092dbee8
MD5 6bb0a1d75f7ed963d5201e7497498be6
BLAKE2b-256 4dd7f5ea12b184f77b632bb4e8082660d0ce395bc38d0be650ff346c9320551b

See more details on using hashes here.

File details

Details for the file pcpartpicker-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pcpartpicker-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 29.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for pcpartpicker-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7b17876ab80b8eb91406995360e922786fff80827d4dfd6aece512aa58e2f7a5
MD5 4ff4afc513cf17ff93676de8b2e0de85
BLAKE2b-256 77b38281ff9e7d935db019148cc820f870e071b37d278be69d585da9db7d6ea5

See more details on using hashes here.

Supported by

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