Skip to main content

No project description provided

Project description

UniversityHeader

phalanx

phalanx is a specialized tool for downloading scrolls and fragments, allowing users to efficiently retrieve specific slices from volumes and fragments. The name "phalanx" draws inspiration from the mythical phoenix, symbolizing rebirth and revival. Just as the phoenix rises from its ashes, phalanx is designed to help resurrect and breathe new life into ancient scrolls buried under the ashes of Mount Vesuvius, offering a modern way to explore and preserve these fragments of history.

Installation

pip install vesuvius-phalanx

Requirements

  • Python 3.8+

Core Dependencies

  • requests: For handling HTTP requests and downloading content from the web.
  • beautifulsoup4: For parsing HTML and extracting useful information from web pages.
  • tqdm: Provides a progress bar to visualize the download progress.
  • click: A package for creating user-friendly command-line interfaces.

Usage

Download Slices from a Volume

phalanx download-volume --scroll-name SCROLL_NAME [--volpkg-name VOLPKG_NAME] [--volume-id VOLUME_ID] [--slices SLICES]
  • --scroll-name: Name of the scroll (e.g., 'Scroll1').
  • --volpkg-name: Name of the volpkg (optional).
  • --volume-id: Volume identifier (optional).
  • --slices: Slice ranges to download (default is all).

Download Slices from a Fragment

phalanx download-fragment --scroll-name SCROLL_NAME [--volpkg-name VOLPKG_NAME] --fragment-id FRAGMENT_ID [--slices SLICES] [--mask]
  • --scroll-name: Name of the scroll (e.g., 'Scroll1').
  • --volpkg-name: Name of the volpkg (optional).
  • --fragment-id: Fragment identifier.
  • --slices: Slice ranges to download (default is all).
  • --mask: Download mask (default is true).

Examples

Download Slices 1-5 from a Scroll Volume

phnx download-volume --scroll-name Scroll1 --volume-id 20230205180739 --slices 1-5

Download All Slices from a Scroll Volume

phnx download-volume --scroll-name Scroll1 --volume-id 20230205180739

Download All Slices from a Scroll Fragment

phnx download-fragment --scroll-name Scroll1 --fragment-id 20230503225234 --slices all

Features

  • Multithreaded Downloads: Download slices in parallel for improved performance.
  • Flexible Slice Selection: Download specific slices, ranges, or all slices.
  • User-Friendly CLI: Command-line interface built with Click.

Contributing

Contributions are welcome! Please submit a pull request or open an issue.

License

This project is licensed under the MIT License.

Additional Notes

  • Progress Bar: Tracks the number of files downloaded and total data.
  • Error Handling: Informs users if any files fail to download after retries.
  • Extensibility: Easily add new downloaders or features.

Project details


Download files

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

Source Distribution

vesuvius_phalanx-0.1.8.tar.gz (995.8 kB view details)

Uploaded Source

Built Distribution

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

vesuvius_phalanx-0.1.8-py3-none-any.whl (996.0 kB view details)

Uploaded Python 3

File details

Details for the file vesuvius_phalanx-0.1.8.tar.gz.

File metadata

  • Download URL: vesuvius_phalanx-0.1.8.tar.gz
  • Upload date:
  • Size: 995.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.5

File hashes

Hashes for vesuvius_phalanx-0.1.8.tar.gz
Algorithm Hash digest
SHA256 0b1df6363ca74d8cf5ae953b6a2ece4f07fdbfa4ae2ff42d7f46522221b39b9b
MD5 8b30398ca7dad1acb89f6d6987ab99fd
BLAKE2b-256 e4e910ae948f8b572b3c544c00f0ab0b35217843989a099c26ef7ceab993552b

See more details on using hashes here.

File details

Details for the file vesuvius_phalanx-0.1.8-py3-none-any.whl.

File metadata

File hashes

Hashes for vesuvius_phalanx-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c04ea962a0ca2a6d10bf65ff6b0ee43660d1773eb2fe3f73f81c14000e863ef3
MD5 1f9262ee787bab8454b8242e1390ab8e
BLAKE2b-256 4714cc42c62021c8de9b81fc13e624b73f585f27820a7475128ac696047761ba

See more details on using hashes here.

Supported by

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