Metadata-Version: 2.4
Name: python-nameof
Version: 1.1.0
Summary: A Python implementation of the C# nameof operator.
Home-page: https://github.com/yourusername/python-nameof
Author: Alessio Lombardi
Author-email: work@alelom.com
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# Python implementation of the C# nameof operator

python-nameof
=============

A Python utility that mimics the C# `nameof` operator, allowing you to get variable or attribute names as strings.

## Installation

```bash
pip install python-nameof
```

## Usage

```python
from nameof import nameof

foo = 123
print(nameof(foo))  # Output: 'foo'

class Bar:
    attr = 99
bar = Bar()
print(nameof("bar.attr"))  # Output: 'attr'
```

## License

MIT
