Skip to content

Latest commit

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

dotdict

Access dict keys as attributes (dot notation)

PyPI versionLicense: MITPython 3.8+

Installation

pip install dotdict

Quick Start

fromdotdictimportdotdict# Basic usageresult=dotdict("your input here")
print(result)

Features

  • Simple, clean API with type hints
  • Zero dependencies (pure Python)
  • Python 3.8+ compatible
  • Fully tested
  • Lightweight (< 5KB)

API Reference

dotdict(input)

Main utility function.

Parameters:

  • input — The input data to process

Returns: Processed result

batch(inputs)

Process multiple inputs at once.

Parameters:

  • inputs — List of inputs

Returns: List of results

Examples

fromdotdictimportdotdict# Example 1: Basic usageresult=dotdict("Hello World")
# Example 2: Batch processingfromdotdictimportbatchresults=batch(["item1", "item2", "item3"])

Running Tests

pip install pytest
pytest tests/

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

MIT License - see LICENSE file for details.


Learn More

Want to build tools like this? Check out the Python For Beginners course — it teaches you step-by-step how to create useful Python utilities from scratch, with real-world projects and best practices.

Built with skills from Python For Beginners

About

Access dict keys as attributes (dot notation)

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages