
Security News
Bun 1.2.19 Adds Isolated Installs for Better Monorepo Support
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
AnimeGirlAPI is a Python package designed for easy interaction with the CatGirlNexus API. It provides functionalities to fetch image details, download images, and access various tags and ratings.
To install AnimeGirlAPI, use Poetry
. Ensure you have Poetry
installed, then run:
poetry install
get_info(url)
Retrieves information about a specific image from the API.
Parameters:
url
(str): The URL of the image.Returns:
tags
: A dictionary of image tags (excluding "rating").rating
: The image's rating.Example:
info = get_info("https://example.com/image1.jpg")
get_all_tags()
Gets a dictionary of all available tags with their descriptions.
Returns:
Example:
tags = get_all_tags()
download_image(url, output=None)
Downloads an image from the specified URL and saves it to the given path.
Parameters:
url
(str): The URL of the image.output
(str, optional): The file path where the image will be saved. If not specified, the image is saved with its filename in the current directory.Returns:
path
: The path where the image was saved.Example:
download_image("https://example.com/image1.jpg", "images/image1.jpg")
get_all_images()
Fetches and returns a dictionary of all images from the API.
Returns:
Example:
images = get_all_images()
get_all_ratings()
Gets a list of all possible ratings.
Returns:
Example:
ratings = get_all_ratings()
get_random_image(number=1, tag=None, rating=None, ignore=False, randomize=False)
Fetches a random image that matches the given tags and/or ratings.
Parameters:
number
(int): Number of images to fetch (up to 100).tag
(str, tuple, list, optional): Tags to filter images by.rating
(str, tuple, list, optional): Ratings to filter images by.ignore
(bool, optional): Whether to ignore warnings if not enough images are found.randomize
(bool, optional): Whether to shuffle images before selection.Returns:
Example:
random_images = get_random_image(number=5, tag=["catgirl"], rating="safe", randomize=True)
requests
libraryTo run tests, use:
poetry run pytest
This project is licensed under the MIT License.
Allexx allexx129@gmail.com
FAQs
An API that can output anime girls, and is 100% manually verified
We found that animegirlapi demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.
Security News
Popular npm packages like eslint-config-prettier were compromised after a phishing attack stole a maintainer’s token, spreading malicious updates.
Security News
/Research
A phishing attack targeted developers using a typosquatted npm domain (npnjs.com) to steal credentials via fake login pages - watch out for similar scams.