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.1.tar.gz (6.4 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.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wirez_py-1.0.1.tar.gz
  • Upload date:
  • Size: 6.4 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.1.tar.gz
Algorithm Hash digest
SHA256 4665a72b93974383d1f098ffd06dd88e9a6ebf1b7e87713df0308fa61ac50746
MD5 4bd4dfc917526e5bce268ac6001d600b
BLAKE2b-256 c31905787f1cfaf1639be572ac9f465830c83aba11af45d276539d18cefc922a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wirez_py-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01fd015b52356433fbc108a8a16a26f8e0462389fe9e1939c85550d889772c12
MD5 f14e9b16bc574fe48e0c359270f2cd99
BLAKE2b-256 1d288817b86ab735778f5669d8347be43dae059979c3ec2d732bbb63b6a8e3a8

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