Skip to main content

NozomiPy-Async

Async nozomi.la API for Python3.

NozomiPy-Async is an Async Python3 library for nozomi.la API.

NozomiPy-Async also provides a commandline tool to download images and tags from nozomi.la.

Based on Python-Nozomi: https://github.com/Alfa-Q/python-nozomi

Install

pip install nozomipy-async

Import packages

from nozomipy.async_api import api

API Usages

API init

import asyncio
from nozomipy.async_api import api

nozomi_api = api(semaphore=8,proxy="http://127.0.0.1:1080")

Download images

# The tags that the posts retrieved must contain
positive_tags = ['veigar', 'wallpaper']

# Gets all posts with the tags 'veigar', 'wallpaper'
posts = await nozomi_api.get_posts()
# download all images
await asyncio.gather(*[download_img_tags(post,path) for post in posts])

Create dataset

Download images and tags during a period to a folder named with positive tags.

nozomipy --path "./" --positive_tags 'miyase_mahiro' --start_date 2022-02-22 --end_date 2022-01-22 --num_process=8 --proxy http://127.0.0.1:7890

Metadata

Release files for nozomipy-async 1.0.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 nozomipy-async 1.0.0
File Size Uploaded
nozomipy-async-1.0.0.tar.gz 11.9 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for nozomipy-async 1.0.0
File Interpreter ABI Platform
nozomipy_async-1.0.0-py3.9.egg Legacy Egg format - - Details
nozomipy_async-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 45.2 kB

Release files / nozomipy-async-1.0.0.tar.gz

Download URL nozomipy-async-1.0.0.tar.gz
Size 11.9 kB
Tags Source
SHA-256 checksum
How to use checksums
930dbd0a192c0a8db9d3d532a66d7341d5f51b278c57f38b5325e1e4df2da481
BLAKE2b-256 checksum
How to use checksums
7f2c1d5fa7f525dcf1aa9b92b747747b9e65337dc0de447915d135358beac0d4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / nozomipy_async-1.0.0-py3.9.egg

Download URL nozomipy_async-1.0.0-py3.9.egg
Size 21.9 kB
Tags Egg
SHA-256 checksum
How to use checksums
0e3fc0fc84103e487bcaeb28b8d1b940bf414085e9c6dc67a05e5ab4c8e68a1d
BLAKE2b-256 checksum
How to use checksums
fc4f5c5bbf80266bcf977b9906f64f8c9892cd62c2aa0a2389db67ed4716b761
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / nozomipy_async-1.0.0-py3-none-any.whl

Download URL nozomipy_async-1.0.0-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a29a13efbb0138c538653071f6f403f2091c7b52c0ab35d4d3afa079561b583a
BLAKE2b-256 checksum
How to use checksums
2cecec4b23a153edd45cdc6ddfe8d83af30981a5b6392ba6cf04836766f7ce6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

1.0.0 This release

3 release files

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