Skip to main content

A python API wrapper for the Squid Game API

Project description

sg_api.py

An API wrapper for the Squid Game API.

A simple way to extract JSON content from the Squid Game API.

You can either get character content or episode content, and filter out specific key:value pairs.

Warning

Some JSON files you fetch may have invalid headers leading to an error. If this occurs, open an issue on the GitHub.

Usage

import sg_api_py
from sg_api_py import characters, episodes
# This package uses return statements instead of print
print(characters(1, 218, "title"))
# Cho Sang-woo
print(episodes(1, 4, "title"))
# Stick to the Team

For more info, wait for the documentation or read the source code (100 lines)

Installation

You can easily install via PIP.

pip install sg_api_py

Other Information

Licensed under the MIT License.

Credits:

BeautifulSoup: for easy HTML extraction

Squid Game Fandom: for providing information about Squid Game

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

sg_api_py-0.1.4.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

sg_api_py-0.1.4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file sg_api_py-0.1.4.tar.gz.

File metadata

  • Download URL: sg_api_py-0.1.4.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sg_api_py-0.1.4.tar.gz
Algorithm Hash digest
SHA256 beb6cec0f32a070b62f3d881ccc08d76092978560a56599483d44451ce081671
MD5 acc3ae76a18c5e657c52ee36d4bb1f60
BLAKE2b-256 8030b6514c448eaf909c58923f836db83d5978c8e619c37351d7aeea67c39f9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for sg_api_py-0.1.4.tar.gz:

Publisher: python-publish.yml on stainlesteel/sg_api.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sg_api_py-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: sg_api_py-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for sg_api_py-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 caa28eb68d0d59b233f5bad68aee929c7a3d00d945775db03980454c2cb08b42
MD5 e6c87dc4b028bdfac489a2e978beba59
BLAKE2b-256 3fd5699fcd53cb6dd775668e4b4399b4a2064ebaf45504173d8e2d24604d9bd6

See more details on using hashes here.

Provenance

The following attestation bundles were made for sg_api_py-0.1.4-py3-none-any.whl:

Publisher: python-publish.yml on stainlesteel/sg_api.py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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