Registry / devops / path-and-address

path-and-address

JSON →
library2.0.1pypypiunverified

Functions for parsing command-line arguments that combine file paths and network addresses, commonly used in server applications. Version 2.0.1. Stable, low release cadence.

pip install path-and-address
INSTALL
IMPORT
SIG · PATH-AND-ADDRESS
P
path-and-address
devopspythonv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

PathAddress
from path_and_address import PathAddress
import path_and_address
The main class is not directly on the module; use explicit import.
parse
from path_and_address import parse
from path_and_address.parser import parse
The parse function is re-exported at top level, not in submodules.

Parse a string combining a path and address into its components.

from path_and_address import PathAddress # Parse a combined path:address string pa = PathAddress('/path/to/socket:8080') print(pa.path) # '/path/to/socket' print(pa.address) # '8080'
Debug
Known issues
gotchaThe library expects the format 'path:address'. If the path contains colons (e.g., Windows absolute path like 'C:\'), parsing may be incorrect because the first colon separates path and address.
fix
Use a raw string or escape the colon if necessary. Alternatively, manually split on last colon.
affects: all
deprecatedVersion 2.0 changed the import path; previous versions (1.x) used 'from path_and_address import parse' directly but the new version may require using PathAddress class for full functionality.
fix
Use PathAddress class from top-level module. For simple splitting, still use parse() function imported from top-level.
affects: 2.0+
Upgrade
Version history
2.0.1latest on PyPI · released Jul 21, 2016
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
path-and-address — pip install path-and-address · libregistry