Skip to main content

barch.py

What is this?

An asynchronous wrapper for the fanmade Blue Archive API.

Why and what's the use?

Idk.... built it coz I don't have anything better to do.

Installation

Python version 3.10 or greater is required to use barch.py.

pip install barch-py

Features

  • Get all the characters - EN and JP version
  • Get a character details by id or name - EN and JP version
  • Get characters based on different parameters like position, role etc
  • Get current, ongoing and upcoming raids - EN and JP versions

Usage

  • Example of getting all the characters - EN and JP versions
from  barch  import  Client

client = Client()

characters_result = await client.character.get_all_characters()
characters_result_jp = await client.character.get_all_characters_jp()

if characters_result.is_success:
    characters = characters_result.value

if characters_result.is_error:
    error = characters_result.error

if characters_result_jp.is_success:
    characters_jp = characters_result_jp.value

if characters_result_jp.is_error:
    error_jp = characters_result_jp.error

await  client.close()
  • Example of getting raid details - EN and JP versions
from barch import Client

client = Client()

raids_result = await client.raid.get_raids()
raids_result_jp = await client.raid.get_raids_jp()

if raids_result.is_success:
    raids = raids_result.value

if raids_result.is_error:
    error = raids_result.error

if raids_result_jp.is_success:
    raids_jp = raids_result_jp.value

if raids_result_jp.is_error:
    error_jp = raids_result_jp.error

await  client.close()

Metadata

Release files for barch-py 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for barch-py 0.1.0
File Size Uploaded Provenance Actions
barch_py-0.1.0.tar.gz 10.0 kB Without provenance Details for barch_py-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for barch-py 0.1.0
File Interpreter ABI Platform Actions
barch_py-0.1.0-py3-none-any.whl Python 3 none any Details for barch_py-0.1.0-py3-none-any.whl

Total release size: 25.1 kB

Release files / barch_py-0.1.0.tar.gz

Download URL barch_py-0.1.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8fa9e2df746a9ab824cf9e7c152894d2ac3c01ab7c5c0586581221006d104870
BLAKE2b-256 checksum
How to use checksums
4cc666238260f8f1bc5ab9abae64bad991c7b31bd3b0095430f1b70d7f369d6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure

Release files / barch_py-0.1.0-py3-none-any.whl

Download URL barch_py-0.1.0-py3-none-any.whl
Size 15.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3016a44a031bf8a165b38489500bfd3282e609c85086e3ba38a6977ddca212ff
BLAKE2b-256 checksum
How to use checksums
e52009f5ecc789e131144b1c3743ea32cd892c7bbbbcc72f46ba6b571f5151ac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.0 Linux/5.15.0-1041-azure

Security for barch-py 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page