Metadata-Version: 2.4
Name: petnames
Version: 0.1.20251118
Summary: PetName and Distributed Directory Name resolver
Project-URL: source, https://codeberg.org/skyguy/petnames
Author-email: Kevin Steen <code@kevinsteen.net>
License-Expression: AGPL-3.0-or-later
License-File: COPYING
License-File: LICENCE
Keywords: ddig,dig,dns
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Communications
Requires-Python: >=3.12
Provides-Extra: dev
Requires-Dist: pytest; extra == 'dev'
Description-Content-Type: text/markdown

# PetName and Distributed Directory Name resolver

This tool resolves names to addresses, starting from your local directory and 
following links to other directories.

PROTOTYPE! This is still a work-in-progress. Currently only the local-directory 
resolving is implemented.

To try it out:

+ Clone this repository
+ Install the package with `pip install .`
+ Create a file `~/.local/share/petnames/local/server1.txt` containing lines like these:

```
suggested_name=Server One
reti_dest=dst0aabbccddeeffaabbccddeeffaabbccdd
reti_id=id0bacdbacd...
```

+ Run `ddig server1` which should display the properties you created

There is also a modified version of rnx.py which will resolve names instead of 
destination hashes, so you can run:

```
./rnx.py server1 'cat /proc/cpuinfo'
```

## Usage:
ddig NAME [PROPERTY]

NAME is a sequence of names joined by periods ("dots")

PROPERTY is the record property you want to retrieve (default: 'all')
