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

Uploaded Python 3

File details

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

File metadata

  • Download URL: putplace_client-0.8.4.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.4.tar.gz
Algorithm Hash digest
SHA256 312106346edb47586f36d4da162a2f1421d4cc60ed668bd5cb1aeeed70cab2e1
MD5 824ef85bd5527068f7a85735d5eb30f7
BLAKE2b-256 a7118cf8aeddd82d611930a9fb3df7a2eb47107dbeae9e8709d63d48c7262af5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for putplace_client-0.8.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8e4936e5a5469c1d0860d496f33a397632fb98de23b1a9f7cf73f3d5a47fec40
MD5 5dae6e5303966b5506dffb0509e14667
BLAKE2b-256 fde417f9e246b7754274250c0ed812abc2c9664eaf53a4a8c1c369475e527610

See more details on using hashes here.

Provenance

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