Skip to main content

A package for getting data from Jojo's Bizarre Api.

Project description

jojoapi

jojoapi is a simple python package for interacting with Jojo's Bizarre Api.

You can use it to get information (in JSON format) on Jojo's Bizarre Adventure characters and stands.

Documentation and Functions (Characters)

WARNING: There may be light spoilers for Jojo's Bizarre Adventure up ahead. Do not use an API like this if you haven't finished the series.

Each set of functions have versions for characters and stands. We'll go over Characters first. You can first use jojoapi.getCharacterbyID() to get a certain character's info by their given ID on the Jojo's Bizarre Api site.

import jojoapi
x = jojoapi.getCharacterbyID(id=69)
print(x)

This will return:

{
  "id": "69",
  "name": "Ken Oyanagi",
  "japaneseName": "大柳 賢",
  "image": "ken.png",
  "abilities": "Boy II Man",
  "nationality": "Japanese",
  "catchphrase": "Hey, mister. Wanna play rock-paper-scissors?",
  "family": "none",
  "chapter": "Diamond is Unbreakable",
  "living": true,
  "isHuman": true
}

The only argument that jojoapi.getCharacterbyID() will take is id which must be an int.

There is also jojoapi.getAllCharacters() which returns a massive list of JSON data for all characters registered on the API.

There is also jojoapi.getRandomCharacter() which will return a random character's data.

Finally, there is jojoapi.getCharacterbyQuery() which will return JSON responses for only characters that meet a criteria. You must specify the str argument category which has 8 valid values which are: name, chapter, nationality, family, abilities, isHuman, living, and catchphrase. You also must specify the str argument query which will be what the category argument should be equal to. For example:

import jojoapi
x = jojoapi.getCharacterbyQuery(category="nationality", query="Japanese")
print(x)

This will return all JSON data for characters with a nationality of Japanese.

Documentation and Functions (Stands)

Each set of functions have versions for characters and stands. We'll go over Stands next. You can first use jojoapi.getStandbyID() to get a certain stand's info by their given ID on the Jojo's Bizarre Api site.

import jojoapi
x = jojoapi.getStandbyID(id=1)
print(x)

This will return:

{
  "id": "1",
  "name": "The World",
  "alternateName": "none",
  "japaneseName": "ザ・ワールド(世界)",
  "image": "theworld.png",
  "standUser": "2",
  "chapter": "Stardust Crusaders, Steel Ball Run",
  "abilities": "Time Stop, Super Speed, Super Strength",
  "battlecry": "MUDAMUDAMUDA"
}

The only argument that jojoapi.getStandbyID() will take is id which must be an int.

There is also jojoapi.getAllStands() which returns a massive list of JSON data for all stands registered on the API.

There is also jojoapi.getRandomStand() which will return a random stand's data.

Finally, there is jojoapi.getStandbyQuery() which will return JSON responses for only characters that meet a criteria. You must specify the str argument category which has 8 valid values which are: name, alternateName, standUser, chapter, abilities, and battlecry. You also must specify the str argument query which will be what the category argument should be equal to. For example:

import jojoapi
x = jojoapi.getStandbyQuery(category="name", query="Gold Experience")
print(x)

This will return all JSON data for characters with a name of Gold Experience:

[
  {
    "id": "57",
    "name": "Gold Experience",
    "alternateName": "Golden Wind",
    "japaneseName": "ゴールド・エクスペリエンス (黄金体験)",
    "image": "goldexperience.png",
    "standUser": "75",
    "chapter": "Vento Aureo",
    "abilities": "Create Life, Life Shot, Flesh/Organ Creation, Life Sensor",
    "battlecry": "MUDA MUDA MUDA"
  },
  {
    "id": "58",
    "name": "Gold Experience Requiem",
    "alternateName": "Golden Wind Requiem",
    "japaneseName": "ゴールド・エクスペリエンス・レクイエム",
    "image": "goldrequiem.png",
    "standUser": "75",
    "chapter": "Vento Aureo",
    "abilities": "Return to Zero, Life Giver, Super Strength, Super Speed, Autonomy",
    "battlecry": "MUDA MUDA MUDA"
  }
]

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

jojoapi-1.0.2.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

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

jojoapi-1.0.2-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file jojoapi-1.0.2.tar.gz.

File metadata

  • Download URL: jojoapi-1.0.2.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for jojoapi-1.0.2.tar.gz
Algorithm Hash digest
SHA256 182d1d4ad8a25ba3a91b699410450398bb1c5f2e4ce9625d15aaec74b960259b
MD5 7f4bb58db6cbeb6f2600ecddced56652
BLAKE2b-256 5abf11fc2a444f5b48287004c5285ac90eea0dec4370372a7fafb8c67a9a123d

See more details on using hashes here.

File details

Details for the file jojoapi-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: jojoapi-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for jojoapi-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e779bc034c10a0ebe0a8d93b3e07264921b224babe01fffcce5e62c1c1d2ec5a
MD5 06426674ac081d4dd8520e9fe80ddb97
BLAKE2b-256 242373b0d5a7ce7a19baefbe43a9efddb1ece7208e10d3bfb6b18af81e464fd9

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