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.2.tar.gz (7.7 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.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wirez_py-1.0.2.tar.gz
  • Upload date:
  • Size: 7.7 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.2.tar.gz
Algorithm Hash digest
SHA256 999fa80754f7a143383024f846b929d7d40c12e47b3fecb210e9319f7d16d40f
MD5 86e36337316cd3de65aa8345538a5b41
BLAKE2b-256 36cce843510430e45b4334e485dd6549d2a2462a19be7f837b342bb79d89e821

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wirez_py-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 acc3ef4ab72a1001c0587210540ffd25b20f209fddcb1d33eedd869ad42e9294
MD5 af4d8b0caf9ae1ccbf0af12da0348387
BLAKE2b-256 00a063ba43031f51ccfd934170a08c735e711782caa84ec136106130467cd493

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