Skip to main content

API wrapper for ambr.top written in Python

Project description

ambr-py

Introduction

ambr-py is an async API wrapper for Project Ambr written in Python.
Project Ambr is a beautiful website that displays Genshin Impact game data.
Developing something for Hoyoverse games? You might be interested in other API wrappers written by me.

Note: I am not the developer of Project Ambr.

Features

  • Fully typed.
  • Fully asynchronous by using aiofiles, aiohttp, and asyncio, suitable for Discord bots.
  • Provides direct icon URLs.
  • Supports Python 3.11+.
  • Supports all game languages.
  • Supports persistent caching using SQLite.
  • Supports Pydantic V2, this also means full autocomplete support.

Installation

# poetry
poetry add ambr-py

# pip
pip install ambr-py

Quick Example

import ambr
import asyncio

async def main() -> None:
    async with ambr.AmbrAPI(ambr.Language.CHT) as client:
        await client.fetch_characters()

asyncio.run(main())

Getting Started

Read the wiki to learn more about on how to use this wrapper.

Questions, Issues, Feedback, Contributions

Whether you want to make any bug reports, feature requests, or contribute to the wrapper, simply open an issue or pull request in this repository.
If GitHub is not your type, you can find me on Discord, my username is @seria_ati.

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

ambr_py-1.7.15.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

ambr_py-1.7.15-py3-none-any.whl (36.6 kB view details)

Uploaded Python 3

File details

Details for the file ambr_py-1.7.15.tar.gz.

File metadata

  • Download URL: ambr_py-1.7.15.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.8.0-1014-azure

File hashes

Hashes for ambr_py-1.7.15.tar.gz
Algorithm Hash digest
SHA256 b630d38201c318d8dbf328dc6f122f82130fe5f5964f4dc1abfaa87cabd23edf
MD5 9955c722efabd5f20d624b9c6ce9a005
BLAKE2b-256 7f3856535e71e0b57471fc6d799f45cba18860f47c984cf1b8702bd7f0443a5f

See more details on using hashes here.

File details

Details for the file ambr_py-1.7.15-py3-none-any.whl.

File metadata

  • Download URL: ambr_py-1.7.15-py3-none-any.whl
  • Upload date:
  • Size: 36.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.10 Linux/6.8.0-1014-azure

File hashes

Hashes for ambr_py-1.7.15-py3-none-any.whl
Algorithm Hash digest
SHA256 8930c782db99d984ff59f8eaf0a72d51ac93e055d2e37e879fc7904417a322c1
MD5 0718a92d8d13c831b9b8439f254532c2
BLAKE2b-256 8fadcf0eec34b45ea3fb6f307420b1a7d6a9fc6fee59e9104f4a9c2056e5deea

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