Skip to content

Latest commit

 

History

9 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 PyJget

FOUNDER AND CORE ARCHITECT - ABEEDALI SHAIK

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/

Live Link

https://pyjget.vercel.app/

Medium

https://medium.com/@abeedalishaik1080/i-published-my-first-python-package-on-pypi-building-pyjget-from-scratch-bbd58b51cbc6


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

Made with Abeedali Shaik in Python

About

A lightweight, zero-dependency Python utility for safe, effortless nested JSON and dictionary path extraction using dot notation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages