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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nozomipy-async-1.0.0.tar.gz (11.9 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

nozomipy_async-1.0.0-py3.9.egg (21.9 kB view details)

Uploaded Egg

nozomipy_async-1.0.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file nozomipy-async-1.0.0.tar.gz.

File metadata

  • Download URL: nozomipy-async-1.0.0.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for nozomipy-async-1.0.0.tar.gz
Algorithm Hash digest
SHA256 930dbd0a192c0a8db9d3d532a66d7341d5f51b278c57f38b5325e1e4df2da481
MD5 d70bb2cec1507d6d7b9edb7a2462ce05
BLAKE2b-256 7f2c1d5fa7f525dcf1aa9b92b747747b9e65337dc0de447915d135358beac0d4

See more details on using hashes here.

File details

Details for the file nozomipy_async-1.0.0-py3.9.egg.

File metadata

  • Download URL: nozomipy_async-1.0.0-py3.9.egg
  • Upload date:
  • Size: 21.9 kB
  • Tags: Egg
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for nozomipy_async-1.0.0-py3.9.egg
Algorithm Hash digest
SHA256 0e3fc0fc84103e487bcaeb28b8d1b940bf414085e9c6dc67a05e5ab4c8e68a1d
MD5 4c7cda631b2d761f6e2399aa10ed7b90
BLAKE2b-256 fc4f5c5bbf80266bcf977b9906f64f8c9892cd62c2aa0a2389db67ed4716b761

See more details on using hashes here.

File details

Details for the file nozomipy_async-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: nozomipy_async-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.7

File hashes

Hashes for nozomipy_async-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a29a13efbb0138c538653071f6f403f2091c7b52c0ab35d4d3afa079561b583a
MD5 5ed6a1070e308cd3c06f74287c3fa794
BLAKE2b-256 2cecec4b23a153edd45cdc6ddfe8d83af30981a5b6392ba6cf04836766f7ce6f

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

3 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page