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

Clone the repository and install the package:

git clone https://github.com/mvrcii/phalanx.git
cd phalanx
pip install -e .

Requirements

  • Python 3.8+

Install all dependencies with:

pip install -r requirements.txt

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.

You can install all dependencies with:

pip install -r requirements.txt

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.
  • --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]
  • --scroll-name: Name of the scroll.
  • --volpkg-name: Name of the volpkg (optional).
  • --fragment-id: Fragment identifier.
  • --slices: Slice ranges to download (default is all).

Examples

Download Slices 1-5 from a Volume

phalanx download-volume --scroll-name Scroll1 --volpkg-name PHercParis4.volpkg --volume-id 20230205180739 --slices 1-5

Download All Slices from a Fragment

phalanx download-fragment --scroll-name Scroll1 --volpkg-name PHercParis4.volpkg --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.3.tar.gz (995.2 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.3-py3-none-any.whl (995.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vesuvius_phalanx-0.1.3.tar.gz
  • Upload date:
  • Size: 995.2 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.3.tar.gz
Algorithm Hash digest
SHA256 090aecb000edc16ddbf18ff3d53cf3bbdddf91ebfab5510594aaf7583cabc7c3
MD5 fce9d80dcf28a6f22af8748bf796967e
BLAKE2b-256 26628f378da813d47771dde855323b29df53db2346ce930656d1fc42590342d8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for vesuvius_phalanx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 908e9254b57c7651ae93e40b38a4423092a2d9a4c4c7d30715295482f2e1ffe5
MD5 cfebfc276afc115ce184822200f61887
BLAKE2b-256 d2e1cd9abca73f87401e4880ca7e1c8a37a81645fe99b97d766a8593b207106e

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