🚀 PyJget
Simple • Fast • Lightweight JSON Path Extraction for Python
Extract nested values from dictionaries and JSON objects using clean dot notation.
📦 Install
pip install PyJget
⭐ If you find this project useful, consider giving it a star on GitHub!
✨ Features
- 🚀 Lightning-fast nested JSON access
- 🎯 Simple dot notation (
user.profile.name) - 📦 Zero dependencies
- 🐍 Pure Python
- 💡 Beginner-friendly API
- ⚡ Lightweight and efficient
- ✅ Safe default values
- 🔥 Clean and readable code
📖 Quick Example
Input JSON
data = {
"user": {
"profile": {
"name": "Alice",
"age": 22
}
}
}
Python Code
from pyjget import jget
name = jget(data, "user.profile.name")
age = jget(data, "user.profile.age")
print(name)
print(age)
Output
Alice
22
🛠 Installation
pip install PyJget
📚 More Examples
Access Nested Values
from pyjget import jget
data = {
"company": {
"employee": {
"name": "John"
}
}
}
print(jget(data, "company.employee.name"))
Output
John
Default Value
print(jget(data, "company.employee.salary", default=0))
Output
0
List Access
data = {
"students": [
{"name": "Alice"},
{"name": "Bob"}
]
}
print(jget(data, "students.1.name"))
Output
Bob
⚡ Why PyJget?
Instead of writing:
data["user"]["profile"]["name"]
or
data.get("user", {}).get("profile", {}).get("name")
Simply write:
jget(data, "user.profile.name")
Cleaner.
Safer.
More readable.
📦 API
jget(data, path, default=None)
| Parameter | Description |
|---|---|
| data | Dictionary or JSON object |
| path | Dot notation path |
| default | Returned if path doesn't exist |
Returns:
- Value if found
defaultotherwise
🚀 Roadmap
- Nested dictionary support
- List indexing
- Wildcard support (
*) - Recursive search
- JSONPath compatibility
- Better error messages
- Performance improvements
🤝 Contributing
Contributions are always welcome!
- Fork the repository
- Create a new branch
- Commit your changes
- Submit a Pull Request
📄 License
MIT License
🔗 Links
GitHub
https://github.com/abeedalishaik1080-lab/PyJget
PyPI
https://pypi.org/project/PyJget/
Metadata
Release files for PyJget 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyjget-0.1.2.tar.gz | 4.5 kB | Without provenance | Details for pyjget-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyjget-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyjget-0.1.2-py3-none-any.whl |
Total release size: 8.2 kB
Release files / pyjget-0.1.2.tar.gz
| Download URL | pyjget-0.1.2.tar.gz |
|---|---|
| Size | 4.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0bd24190fc37978f5b00abe3e7803e051471091b81b8d173c3f24bb0e64806e3
|
|
BLAKE2b-256 checksum How to use checksums |
78b22f3f433457dc74875a016d24fd2eded764b738795183844b20105f830a3f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Release files / pyjget-0.1.2-py3-none-any.whl
| Download URL | pyjget-0.1.2-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf9be9051206f65e27665d4da05a55618efce3b70a35e25d25fd3e416c9aede9
|
|
BLAKE2b-256 checksum How to use checksums |
154a8d981be0e32ad4739d8032fba2f233eae439dfb151cc0cb1449e2233d589
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.0
|
Security for PyJget 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.