Skip to main content

A CLI tool for analyzing PDFs

Project description

Docs2Us PDF CLI

Docs2Us PDF CLI tool is a tool for obtaining brief stats concerning a PDF file.

Table of Contents

Getting Started

These instructions will guide you on how to install and use the Docs2Us PDF CLI tool.

Install

Install with pip

pip install docs2us-pdf-cli

Runn

The command is pdf-stats:

pdf-stats ~/path/to/your.pdf
{
    "can_open": true,
    "has_toc": false,
    "is_pdf": true,
    "password_protected": false,
    "pdf_version": "1.3",
    "size_bytes": 827244,
    "size_pages": 12
}

Developing

Prerequisites

  • Python 3.10 or higher
  • Poetry (Python dependency management tool)

If you haven't installed Poetry yet, you can find the installation instructions here.

Setting up the Development Environment

  1. Clone the Docs2Us PDF CLI repository to your local machine.

  2. Navigate to the root directory of the cloned repository.

  3. Run the following command to install the necessary dependencies:

    poetry install
    
  4. To build the package with any changes, increase the version in pyproject.toml and build:

    poetry build
    poetry install
    

Deploying

Test PyPi:

poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry config pypi-token.testpypi YOUR_TEST_PYPI_TOKEN
poetry publish --repository testpypi
pip install --index-url https://test.pypi.org/simple/ YOUR_PACKAGE_NAME

Contributing

We welcome contributions from everyone. Here are a few guidelines to help you get started:

  1. Fork the Repository: Start by forking the Docs2Us PDF CLI repository to your own GitHub account.
  2. Clone the Repository: Clone the forked repository to your local machine.
  3. Create a New Branch: Always create a new branch for your changes. This keeps the commit history clean and easy to navigate.
  4. Make Your Changes: Make your changes in the new branch. Be sure to test your changes!
  5. Commit Your Changes: Commit your changes regularly with clear, concise commit messages.
  6. Push Your Changes: Once you're happy with your changes, push them to your forked repository.
  7. Submit a Pull Request: Finally, submit a pull request from your forked repository to the original Docs2Us PDF CLI repository. Be sure to provide a clear description of the changes you've made.

Before contributing, please read our Code of Conduct. By participating in this project, you agree to abide by its terms.

Thank you for your interest in contributing to Docs2Us!

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

docs2us_pdf_cli-1.0.0.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

docs2us_pdf_cli-1.0.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file docs2us_pdf_cli-1.0.0.tar.gz.

File metadata

  • Download URL: docs2us_pdf_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 4.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.4 Darwin/23.3.0

File hashes

Hashes for docs2us_pdf_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 239672b83beef524ea5b5dcef7cb634c4b13136752da796cd143b380b510031a
MD5 5eecf3450caaa62e7d9ff10c7288d4f0
BLAKE2b-256 b0e8f986fa5505b38308a1228fb4af16a7fc370bdf559cb1c81061a6dcc3c9f7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: docs2us_pdf_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.10.4 Darwin/23.3.0

File hashes

Hashes for docs2us_pdf_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9145afa454300f8966ea8fc8414730fc2238fb39d87755443635b39b47e19a99
MD5 bd076f6434a2df22f423075fcc6f7707
BLAKE2b-256 d43c6cd03805eda2d7d519c340f7b7f9f4a3a73e1873bea6b0a22913b34fbcd5

See more details on using hashes here.

Supported by

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