Skip to main content

Remember and retrieve file paths by name — from any program, anywhere.

Project description

wires

Remember and retrieve file paths by name — from any program, anywhere.

pip install wires

Usage

import wires

# Save / remember a file
wires.save("my_config", "/path/to/config.json")
wires.remember("my_config", "/path/to/config.json")  # same thing

# Retrieve it later — from any program
wires.get("my_config")     # → "/path/to/config.json"  (str)
wires.recall("my_config")  # same thing
wires.path("my_config")    # → pathlib.Path

# See all saved files
wires.list_all()  # → {"my_config": "/path/to/config.json", ...}

# Remove
wires.remove("my_config")

How it works

Wires stores all registrations in ~/.wires/registry.json. Every program on the machine shares this registry, so a path saved in one script is instantly accessible in another.

License

MIT

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

wirez_py-1.0.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

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

wirez_py-1.0.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file wirez_py-1.0.0.tar.gz.

File metadata

  • Download URL: wirez_py-1.0.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc2

File hashes

Hashes for wirez_py-1.0.0.tar.gz
Algorithm Hash digest
SHA256 9f12ac991731ed989f38d00177f47a50a6ca386399c61b24eb4bdb8d58b0bc6c
MD5 f70f7d0ab372c43d86c65a76f669fdd8
BLAKE2b-256 ba7889658dd92de95dd9ea1854d6a5054833976f13a176176e45b96c41825f32

See more details on using hashes here.

File details

Details for the file wirez_py-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: wirez_py-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.0rc2

File hashes

Hashes for wirez_py-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2eaf2f457fb5e24bac56eb8e8dd0f50f0a1f885401dffb5d2dc91da84469203a
MD5 01488e38161c6197d18c79ee1731c7eb
BLAKE2b-256 6dd72ce11163eecd4672d5d467e7b793e92e35631dac499faa87d47a57b05e05

See more details on using hashes here.

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