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:
- Command-line arguments
- Environment variables (
PUTPLACE_EMAIL,PUTPLACE_PASSWORD,PUTPLACE_API_KEY) - Config files (
~/ppclient.confor./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
- putplace-server - The PutPlace API server
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
84535c9bc0f4df87a34861636068488c5dc4ab4bef7b6ab1671fc75369a3f5ad
|
|
| MD5 |
f13e52bd6d67a0fff1e2f4bb85a7d885
|
|
| BLAKE2b-256 |
3a0b503c825a4c99db4a6a93dbfabbcdfefb39b3feb33effc87b55cfb3f6729c
|
Provenance
The following attestation bundles were made for putplace_client-0.8.2.tar.gz:
Publisher:
publish-pypi.yml on jdrumgoole/putplace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
putplace_client-0.8.2.tar.gz -
Subject digest:
84535c9bc0f4df87a34861636068488c5dc4ab4bef7b6ab1671fc75369a3f5ad - Sigstore transparency entry: 738187773
- Sigstore integration time:
-
Permalink:
jdrumgoole/putplace@73b2e772524c2c459410e5a54c5791248457883f -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/jdrumgoole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@73b2e772524c2c459410e5a54c5791248457883f -
Trigger Event:
push
-
Statement type:
File details
Details for the file putplace_client-0.8.2-py3-none-any.whl.
File metadata
- Download URL: putplace_client-0.8.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cabccd581773fc474eb71d0ab3a680585d9f47428989c67f0f8649bdb6a26b8a
|
|
| MD5 |
51dfc61701662181b5a13d4c79bedf94
|
|
| BLAKE2b-256 |
7b6ac05f0914017a72e24328851f0f6aed409fc8d24f7f14716b5a1bbb8f9a28
|
Provenance
The following attestation bundles were made for putplace_client-0.8.2-py3-none-any.whl:
Publisher:
publish-pypi.yml on jdrumgoole/putplace
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
putplace_client-0.8.2-py3-none-any.whl -
Subject digest:
cabccd581773fc474eb71d0ab3a680585d9f47428989c67f0f8649bdb6a26b8a - Sigstore transparency entry: 738187779
- Sigstore integration time:
-
Permalink:
jdrumgoole/putplace@73b2e772524c2c459410e5a54c5791248457883f -
Branch / Tag:
refs/tags/v0.8.2 - Owner: https://github.com/jdrumgoole
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@73b2e772524c2c459410e5a54c5791248457883f -
Trigger Event:
push
-
Statement type: