semvec/pypi-packages huggingface dataset:
pyflict 1.0
PyFlict provides you to add components, pages, and it has many other features.
License: MIT
Keywords: add page,addpage,add_page,add component,addcomponent,add_component

# PyFlict
Pyflict is a Python Package with many helpful features for [FLASK](https://pypi.org/project/Flask/) developers. It helps you to add components, pages, send Python variables to JavaScript and many other features like, you can add same navbar for every pages while writing it only once. And if you would like to change the code you need to change the code only for once.

# Links

- **Source - [GitHub](https://github.com/Jerit-Baiju)**
- **My WebSite - [Jerit Baiju](https://jerit.herokuapp.com)**
- **Contact Me - [WhatsApp](https://wa.me/+918592060520?text=Hi%20Jerit%20%F0%9F%91%8B%F0%9F%8F%BB)**

## Installation

PyFlict is available on PyPi:

```bash
python3 -m pip install pyflict
```

```bash
pip3 install pyflict
```

PyFlict officially supports Python 3.8+.

## Cloning the Repository

```bash
git clone https://github.com/Jerit-Baiju/PyFlict.git
```

## Features

- Add components in pages
- Render single line HTML
- Adding CSS
- Adding JS
- Send Python variables to JavaScript
- Easy to Use
- Install and Use

## Usage

```py
from flask import Flask
from pyflict import page

app = Flask(__name__)

@app.route('/')
def index():
    # INITIALISING PAGE
    index = page('index')
    # ADD PAGE TITLE
    index.title('Jerit Baiju')
    # ADD CSS
    index.add_css('index')
    # ADD COMPONENT
    index.add_component('navbar')
    # ADD PAGE
    index.add_page('index')
    index.add_component('footer')
    # EXPORTING
    return index.export()

app.run()

```

## License

MIT.
For more information see [LICENCE](https://github.com/Jerit-Baiju/PyFlict/blob/master/LICENSE)
split-paren 0.0.3
TBA
License: MIT
Requires Python: >=2.7

split_paren

... code-block:: python
    def paren_multisplit(subject, separator=",", lparen="([{'\"", rparen=[")", "]", "}", "'", '"'], strip=None, escape=escape_backslash):


Using split_paren
=========================

.. code-block:: python

    import split_paren
    
    # example usage
    
    >>> paren_multisplit('ordinals="1,2,3",4,5', ',', '\'"', '\'"')
    ['ordinals="1,2,3"', '4', '5']

Changelog
=========

0.0.1: initial release (2021-09-19)
magicattr 0.1.6
A getattr and setattr that works on nested objects, lists, dicts, and any combination thereof without resorting to eval
License: MIT

# Magicattr

[![status](https://github.com/frmdstryr/magicattr/actions/workflows/ci.yml/badge.svg)](https://github.com/frmdstryr/magicattr/actions)
[![codecov](https://codecov.io/gh/frmdstryr/magicattr/branch/master/graph/badge.svg)](https://codecov.io/gh/frmdstryr/magicattr)


A getattr and setattr that works on nested objects, lists,
dictionaries, and any combination thereof without resorting to eval.

It differs from getattr and setattr in that it retains the failure cause
instead of always raising an AttributeError.



### Example

Say we have a person class as follows:

```python


class Person:
    settings = {
        'autosave': True,
        'style': {
            'height': 30,
            'width': 200
        },
        'themes': ['light', 'dark']
    }
    def __init__(self, name, age, friends):
        self.name = name
        self.age = age
        self.friends = friends


bob = Person(name="Bob", age=31, friends=[])
jill = Person(name="Jill", age=29, friends=[bob])
jack = Person(name="Jack", age=28, friends=[bob, jill])

```

With magicattr we can do this

```python

# Nothing new
assert magicattr.get(bob, 'age') == 31

# Lists
assert magicattr.get(jill, 'friends[0].name') == 'Bob'
assert magicattr.get(jack, 'friends[-1].age') == 29

# Dict lookups
assert magicattr.get(jack, 'settings["style"]["width"]') == 200

# Combination of lookups
assert magicattr.get(jack, 'settings["themes"][-2]') == 'light'
assert magicattr.get(jack, 'friends[-1].settings["themes"][1]') == 'dark'

# Setattr
magicattr.set(bob, 'settings["style"]["width"]', 400)
assert magicattr.get(bob, 'settings["style"]["width"]') == 400

# Nested objects
magicattr.set(bob, 'friends', [jack, jill])
assert magicattr.get(jack, 'friends[0].friends[0]') == jack

magicattr.set(jill, 'friends[0].age', 32)
assert bob.age == 32
```

You can also delete like this too.

```python

# Deletion
magicattr.delete(jill, 'friends[0]')
assert len(jill.friends) == 0

magicattr.delete(jill, 'age')
assert not hasattr(jill, 'age')

magicattr.delete(bob, 'friends[0].age')
assert not hasattr(jack, 'age')

```

What if someone tries to mess with you?

```python

# Unsupported
with pytest.raises(NotImplementedError) as e:
    magicattr.get(bob, 'friends[0+1]')

with pytest.raises(SyntaxError) as e:
    magicattr.get(bob, 'friends[')

with pytest.raises(ValueError) as e:
    magicattr.get(bob, 'friends = [1,1]')

# Nice try, function calls are not allowed
with pytest.raises(ValueError):
    magicattr.get(bob, 'friends.pop(0)')

```

Did I miss anything? Let me know!



#### What it can't do?

Slicing, expressions, function calls, append/pop from lists, eval stuff, etc...

#### How does it work?

Parses the attr string into an ast node and manually evaluates it.


### Installing

`pip install magicattr`


### License

MIT

Hope it helps, cheers!
pyflaskit 1.0
PyFlit provides you to add components, pages, and it has many other features.
License: MIT
Keywords: add page,addpage,add_page,add component,addcomponent,add_component

# PyFlit
Pyflit is a Python Package with many helpful features for [FLASK](https://pypi.org/project/Flask/) developers. It helps you to add components, pages, send Python variables to JavaScript and many other features like, you can add same navbar for every pages while writing it only once. And if you would like to change the code you need to change the code only for once.

# Links

- **Source - [GitHub](https://github.com/Jerit-Baiju)**
- **My WebSite - [Jerit Baiju](https://jerit.herokuapp.com)**
- **Contact Me - [WhatsApp](https://wa.me/+918592060520?text=Hi%20Jerit%20%F0%9F%91%8B%F0%9F%8F%BB)**

## Installation

PyFlit is available on PyPi:

```bash
python3 -m pip install pyflit
```

```bash
pip3 install pyflit
```

PyFlit officially supports Python 3.8+.

## Cloning the Repository

```bash
git clone https://github.com/Jerit-Baiju/PyFlit.git
```

## Features

- Add components in pages
- Render single line HTML
- Adding CSS
- Adding JS
- Send Python variables to JavaScript
- Easy to Use
- Install and Use

## Usage

```py
from flask import Flask
from pyflit import page

app = Flask(__name__)

@app.route('/')
def index():
    # INITIALISING PAGE
    index = page('index')
    # ADD PAGE TITLE
    index.title('Jerit Baiju')
    # ADD CSS
    index.add_css('index')
    # ADD COMPONENT
    index.add_component('navbar')
    # ADD PAGE
    index.add_page('index')
    index.add_component('footer')
    # EXPORTING
    return index.export()

```

## License

MIT.
For more information see [LICENCE](https://github.com/Jerit-Baiju/PyFlit/blob/master/LICENSE)