Metadata-Version: 2.4
Name: pyxtend
Version: 0.5.0
Summary: Some functions for Python
Home-page: https://github.com/jss367/pyxtend
Author: Julius
Author-email: julius.simonelli@gmail.com
Project-URL: Bug Tracker, https://github.com/jss367/pyxtend/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: test
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license-file
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

# pyxtend

Functions to be more productive in Python.

## struct

`struct` is for examining objects to understand their contents.

## Usage

```python
from pyxtend import struct
struct(obj)
struct(obj, examples=True)
```

## Example 1
A simple list of integers

```python
Input: [1, 2, 3, 4, 5]
Output (without examples): {'list': ['int', 'int', 'int', '...5 total']}
Output (with examples): {'list': [1, 2, 3, '...5 total']}
```

## Example 2
A list of lists

```python
Input: [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
Output (without examples): {'list': [{'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}, {'list': ['int', 'int', 'int']}]}
Output (with examples): {'list': [[1, 2, 3], [4, 5, 6], [7, 8, 9]]}
```
