Skip to main content

Amiami API

A simple api wrapper around the amiami site.

Simple usage can be something like

import amiami

results = amiami.search("fumofumo plush")
for item in results.items:
  print("{}, {}".format(item.productName, item.availability))

By default the above will lag because it searches for EVERYTHING so it may time out your script. If you want to go through the pages yourself (for large queries), you can try the following

results = amiami.searchPaginated("fumofumo plush")
# results will have up to 30 items at this point. To see if you need to fetch more, you can check the .hasMore property
while results.hasMore:
  rs.searchNextPage()

That will simulate the regular search function, but in your loop, you could cut if off if results.currentPage > 10 or len(results.items) > 100 whatever other criteria you would like.

You can pass a proxy like in requests by passing in a keyed parameter

proxies = {"https": "http://localhost:3128"}
results = amiami.searchPaginated("fumofumo plush", proxies=proxies)

Sometimes items tend to result in an unknown status because the flag -> state parsing is a bit rough. These items will be added to the list with a status of Unknown status?. They will also print out a message with the flags and item code. Good to check your log and see what's going on.

Metadata

Release files for amiami 0.3.1

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

Source distribution (sdist)

Source distribution for amiami 0.3.1
File Size Uploaded Provenance
amiami-0.3.1.tar.gz 4.4 kB Without provenance Details

Release files / amiami-0.3.1.tar.gz

Download URL amiami-0.3.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
806e0b75e51734c19fa70743fe46d0faa2879617e21e0572ad1df1b7605f4f49
BLAKE2b-256 checksum
How to use checksums
8d5656e8962093cd2d37c5170ee11059a65b283e712d878ca4404c8a4e008777
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.10

Security for amiami 0.3.1

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.

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