Skip to main content

PutPlace CLI client for scanning directories and uploading file metadata

Project description

PutPlace Client

A command-line tool for scanning directories and uploading file metadata to a PutPlace server.

Installation

pip install putplace-client

Quick Start

# Scan a directory and send metadata to server
ppclient /path/to/scan --api-key YOUR_API_KEY

# With custom server URL
ppclient /path/to/scan --url http://your-server:8000/put_file --api-key YOUR_API_KEY

# Dry run (don't send to server)
ppclient /path/to/scan --dry-run

# With exclude patterns
ppclient /path/to/scan --exclude .git --exclude "*.log" --exclude __pycache__

Features

  • Recursively scans directories
  • Calculates SHA256 hashes for each file
  • Auto-detects hostname and IP address
  • Supports exclude patterns (wildcards, directory names)
  • Progress bars and colored output
  • Dry-run mode for testing
  • Configuration file support

Configuration

ppclient supports configuration via:

  1. Command-line arguments
  2. Environment variables (PUTPLACE_EMAIL, PUTPLACE_PASSWORD, PUTPLACE_API_KEY)
  3. Config files (~/ppclient.conf or ./ppclient.conf)

Config file example

[DEFAULT]
url = http://your-server:8000/put_file
api-key = your-api-key
exclude = .git
exclude = *.log
exclude = __pycache__

Command-line Options

ppclient [OPTIONS] PATH

Arguments:
  PATH                    Directory or file to scan

Options:
  --url URL               Server URL (default: http://localhost:8000/put_file)
  --api-key KEY           API key for authentication
  --email EMAIL           Email for JWT authentication
  --password PASSWORD     Password for JWT authentication
  --exclude PATTERN       Exclude pattern (can be repeated)
  --hostname NAME         Override auto-detected hostname
  --ip ADDRESS            Override auto-detected IP
  --dry-run               Scan without sending to server
  --verbose, -v           Verbose output
  --config FILE           Config file path
  --help                  Show help message

Related

License

Apache-2.0

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

putplace_client-0.8.3.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

putplace_client-0.8.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file putplace_client-0.8.3.tar.gz.

File metadata

  • Download URL: putplace_client-0.8.3.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for putplace_client-0.8.3.tar.gz
Algorithm Hash digest
SHA256 b52587768ee3b9cab60911a84f82be98cd438efdd32cdb50501460a5bce815ec
MD5 2f4cc1c0d6a26faa95e745af192118be
BLAKE2b-256 face38222c78f2b756e0122f62efa96137b2c005aea95c063e78ad8b7db3061b

See more details on using hashes here.

Provenance

The following attestation bundles were made for putplace_client-0.8.3.tar.gz:

Publisher: publish-pypi.yml on jdrumgoole/putplace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file putplace_client-0.8.3-py3-none-any.whl.

File metadata

File hashes

Hashes for putplace_client-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0caae79723f2d332130d0e18cf2a2a5b38ef028bfe233e4fa48ea06034df9e92
MD5 b6c3f8a53a6126cf922c650f49d07749
BLAKE2b-256 adf781c63a737a7d0135e2e23e307179d5a5475bd1859b9389f7ecc68482e0ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for putplace_client-0.8.3-py3-none-any.whl:

Publisher: publish-pypi.yml on jdrumgoole/putplace

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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