Skip to main content

🚀 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
  • default otherwise

🚀 Roadmap

  • Nested dictionary support
  • List indexing
  • Wildcard support (*)
  • Recursive search
  • JSONPath compatibility
  • Better error messages
  • Performance improvements

🤝 Contributing

Contributions are always welcome!

  1. Fork the repository
  2. Create a new branch
  3. Commit your changes
  4. Submit a Pull Request

📄 License

MIT License


🔗 Links

GitHub

https://github.com/abeedalishaik1080-lab/PyJget

PyPI

https://pypi.org/project/PyJget/


⭐ If PyJget helps you, please give the project a GitHub Star!

Made with ❤️ in Python

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)

Source distribution for PyJget 0.1.2
File Size Uploaded
pyjget-0.1.2.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for PyJget 0.1.2
File Interpreter ABI Platform
pyjget-0.1.2-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page