https://github.com/zerointensity/namespaces.py
No more stupid dots.
https://github.com/zerointensity/namespaces.py
Last synced: 5 months ago
JSON representation
No more stupid dots.
- Host: GitHub
- URL: https://github.com/zerointensity/namespaces.py
- Owner: ZeroIntensity
- License: other
- Created: 2023-10-22T20:53:19.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-08-02T20:27:22.000Z (over 1 year ago)
- Last Synced: 2025-09-06T13:44:59.193Z (5 months ago)
- Language: C
- Homepage:
- Size: 43.9 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# namespaces.py
## No more stupid dots
- Tired of using the boring old `foo.bar` notation?
- Feel like cheating on your type checker?
- Want to pretend like you're writing C++, even though you aren't?
Fear not, for `namespaces.py` is here!
## Example
```py
import namespaces
namespaces.inject()
class Test:
@staticmethod
def hello():
print("hello world!")
Test[::"hello"]() # hello world!
```
## Features
- Cool `::` C++ like symbol to make you feel special
- Show your linter who's boss
- Pretend this is a feature, I wanted to have 3 listed here to make it seem more even
## Installation
```
$ pip install namespaces.py
```
## Docs?
I'm gonna pretend you didn't ask that.
## Compatibility
Aw come on, discovering broken versions is half the fun.