semvec/pypi-packages huggingface dataset:
invoke-iife 1.1.0
Bringing the fun of immediately-invoked function expressions to Python!
License: MIT
Requires Python: >=3.7,<4.0

# iife

## Immediately-invoked function expressions in Python

The `iife` package provides a decorator function `iife` that calls the function/class it decorates and assigns the result to the name of the function/class.

Some use cases include...

## Creating an anonymous object.

Have you ever written a class that you know will only have one instance? You can use the iife decorator to create that instance immediately.

```python
from iife import iife

@iife
@dataclass
class player:
    x: int = 1
    y: int = 2

# player is an instance of the player class
player.x # -> 1

# The class cannot be reinstantiated because the name is shadowed.
new_player = player(x=3, y=4) # -> SyntaxError
```

This might also be useful in library development to hide the implementation details of the class from the end user, who can only access the single instance.

## Complex initialization.

Sometimes a variable needs to be initialized by complex logic that cannot be expressed as a single assignment. Traditionally, this can be done with temporarily setting the variable to a default value:

```python
x = None
y = [1, 2, 3]
for i in y:
    if i == 2:
        x = i
```

Why not do it with an IIFE? (To be honest, this isn't the best example, but it's more fun to do it like this.)

```python
from iife import iife

@iife
def x() -> Optional[int]:
    y = [1, 2, 3]
    for i in y:
        if i == 2:
            return i
```

... And a bunch more. Maybe. Tbh this is mostly for fun.
sfcparse 2.0.0
The easy to use library for your data, configuration, and save files
License: MIT
Keywords: python,py,config,file,export,parse,text file,cfg,conf,save file,config file,sfcparse,aaronater10,db,database,simple,configuration,alternative,safe,ini,json,xml,yml,data,import

[![Docs](https://raw.githubusercontent.com/aaronater10/sfcparse/main/ext/sfcparse_cover.png)](https://docs.sfcparse.org/)

# sfcparse
The easy to use library for your data, configuration, and save files

[![Functionality-QA-Tests](https://github.com/aaronater10/sfcparse/actions/workflows/sfcparse_functionality_testing.yml/badge.svg)](https://github.com/aaronater10/sfcparse/actions/workflows/sfcparse_functionality_testing.yml)

##### Latest Version: 2.0.0

#

#### sfcparse == Simple File Configuration Parse

Import or Export **custom**, or **industry-common**, data, config, and save files easily for your python program or script!

**Use python data types for your data** (literally use python data types as stored values importing them securely vs just importing a .py file) **in any text file**.

Additionally supports **json**, **yaml**, **ini**, **xml** using the common & native libraries with the idea of simpler abstraction.

Use built-in features for easily formatting your data and other quick and easy tools like getting the hash of a file.


# Tutorials and Docs:
**Quick Start Tutorial Video: [sfcparse Docs](https://docs.sfcparse.org/watch/quick-start)**

**Full Tutorial Videos: [sfcparse Docs](https://docs.sfcparse.org/watch/full-training-series)**

**Official Docs: [sfcparse Docs](https://docs.sfcparse.org/)**

**Latest Updates: [sfcparse Docs](https://docs.sfcparse.org/updates/current-version-updates)**

**Changelog: [sfcparse Docs](https://docs.sfcparse.org/updates/changelog)**

#

### Install
```bash
pip install sfcparse
```

### Cloning the repository

Clone via HTTPS
```bash
git clone https://github.com/aaronater10/sfcparse.git
```

Clone via SSH
```bash
git clone git@github.com:aaronater10/sfcparse.git
```
poetrip 1.0.0
Generate Pipfile from pyproject.toml
License: MIT
Requires Python: >=3.6,<4.0
Keywords: packaging,poetry,pipenv,pipfile


<h1 align="center">Poetrip</h1>
<p align="center">
    <em>Generate Pipfile from pyproject.toml.</em>
</p>
<p align="center">
    <a href="https://pypi.org/project/poetrip/" target="_blank">
        <img src="https://img.shields.io/pypi/v/poetrip.svg" alt="Version">
    </a>
    <a href="https://pypi.org/project/poetrip/" target="_blank">
        <img src="https://img.shields.io/pypi/l/poetrip.svg" alt="License">
    </a>
    <a href="https://pypi.org/project/poetrip/" target="_blank">
        <img src="https://img.shields.io/pypi/pyversions/poetrip.svg" alt="Python">
    </a>
</p>

---

**Source Code**: [https://github.com/Joffreybvn/poetrip](https://github.com/Joffreybvn/poetrip)

**Pypi**: [https://pypi.org/project/poetrip/](https://pypi.org/project/poetrip/)

---

Poetrip is a small library and CLI to quickly create Pipfile from existing pyproject.toml.

## Installation
Poetrip requires Python 3.6 or greater.

Using **pip**:
```Shell
pip install poetrip
```

Using **poetry**:
```shell
poetry add --dev poetrip
```

## CLI Quickstart
Get a Pipfile from a pyproject.toml:
```shell
$ poetrip --from pyproject.toml --to Pipfile
```

Or simply:
```shell
$ poetrip
```
Takes the pyproject.toml in the current folder and generate a Pipfile.

## API Quickstart
Get a Pipfile from a pyproject.toml:
```python
from poetrip import PyProject

# Load and transform
pyproject = PyProject.from_file("./pyproject.toml")
pipfile = pyproject.to_pipfile()

# Write to disk
pipfile.to_file("./Pipfile")
```