Skip to main content

lunasync

PyPI downloads PyPI version PyPI pyversions

Use lunafind to download and keep in sync tag searches from Danbooru-based sites, similar to Danbooru tag subscriptions/saved searches.

Searches are listed in a simple commented CSV file (see --print-config-path).
Can be easily used with cron for automatic scheduling.

Features

  • Full and incremental syncs; incremental stops downloading after reaching the last post that was downloaded in a previous run
  • Fast multithreaded downloads with lunafind; 8 downloads in parallel by default
  • Can sync all or only searches with a specific labels
  • Return the total number of downloaded posts

Command line usage

After adding some searches to the config file, simply doing lunasync will synchronize all searches in the current directory.
A full sync will be taken for a search if this is the first time, else incremental will be used. See lunasync --help for all options.

Python usage

    import lunasync
    lunasync.sync()

See help(lunasync.sync) for parameters.

Installation

Requires Python 3.6+ and pip (for automatic easy install).
Tested on GNU/Linux and Windows 7, probably works on OSX and other POSIX systems.
As root:

    pip3 install -U lunasync

Release files for lunasync 0.1.4

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

Source distribution (sdist)

Source distribution for lunasync 0.1.4
File Size Uploaded
lunasync-0.1.4.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lunasync 0.1.4
File Interpreter ABI Platform
lunasync-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 13.8 kB

Release files / lunasync-0.1.4.tar.gz

Download URL lunasync-0.1.4.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a08f1bf09c2225fbfdaa9745049165ad65c55b9f2a61d404737bd013a0760e9
BLAKE2b-256 checksum
How to use checksums
bcdc029e73cfab14e857ac6970ce65ac20f50aa22e69c83aa962c99f393cd086
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Release files / lunasync-0.1.4-py3-none-any.whl

Download URL lunasync-0.1.4-py3-none-any.whl
Size 8.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
82582620958b523dae2e98abc544f227ae69ef0047d77f7271910783adf647a8
BLAKE2b-256 checksum
How to use checksums
72e5aec1ab07b79d754b6e96a8dde6410db5cf447fd9bced84f8dea8697c25c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 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