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.2.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.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: putplace_client-0.8.2.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.2.tar.gz
Algorithm Hash digest
SHA256 84535c9bc0f4df87a34861636068488c5dc4ab4bef7b6ab1671fc75369a3f5ad
MD5 f13e52bd6d67a0fff1e2f4bb85a7d885
BLAKE2b-256 3a0b503c825a4c99db4a6a93dbfabbcdfefb39b3feb33effc87b55cfb3f6729c

See more details on using hashes here.

Provenance

The following attestation bundles were made for putplace_client-0.8.2.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.2-py3-none-any.whl.

File metadata

File hashes

Hashes for putplace_client-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cabccd581773fc474eb71d0ab3a680585d9f47428989c67f0f8649bdb6a26b8a
MD5 51dfc61701662181b5a13d4c79bedf94
BLAKE2b-256 7b6ac05f0914017a72e24328851f0f6aed409fc8d24f7f14716b5a1bbb8f9a28

See more details on using hashes here.

Provenance

The following attestation bundles were made for putplace_client-0.8.2-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