semvec/pypi-packages huggingface dataset:
so-pip 0.3.0
Generate packages from Stackoverflow answers
License: MIT
Requires Python: >=3.11
Keywords: packaging,stackoverflow

so_pip
======
Everyone copies code from StackOverflow, but no one is formalizing it.

This will vendorize the source code of question or answer into a folder and
generate the accessory files to make it look like a python package.

The feature-set overlaps a bit with [cookie cutter, vendorizing libraries and
stackoverflow search cli's](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/prior_art.md).

Badges
------

![Libraries.io dependency status for latest release](https://img.shields.io/librariesio/release/pypi/so-pip)
[![Downloads](https://pepy.tech/badge/so-pip/month)](https://pepy.tech/project/so-pip/month)
[![CodeFactor](https://www.codefactor.io/repository/github/matthewdeanmartin/so_pip/badge)](https://www.codefactor.io/repository/github/matthewdeanmartin/so_pip)

Installation
------------
Requires Python 3.11+
```
pip install so_pip
# or
pipenv install so_pip --pre --skip-lock

so_pip vendorize my_name --question=31049648 --output=output
```

Using via [dockerhub](https://hub.docker.com/repository/docker/matthewdeanmartin/so_pip)
```
# for mac, unix, cmd.exe, powershell
docker pull matthewdeanmartin/so_pip
docker run --rm -i -v "$PWD/data:/data" matthewdeanmartin/so_pip --help
```
If you use git bash/mingw64/cygwin, see [run.sh](https://github.com/matthewdeanmartin/so_pip/blob/main/docker/run.sh)
because docker needs help doing a volume mount.


Usage
--------------
Consider getting a [key](https://stackapps.com/apps/oauth/register) and adding a [.so_pip.ini file](https://github.com/matthewdeanmartin/so_pip/blob/main/.so_pip.ini) The app will make best efforts if you don't.
```
# Turn posts into nicely formated packages
> so_pip vendorize my_name --question=31049648 | --answer=31049648
> so_pip search --answer=31049648 --tags=python

# Pip-like commands
> so_pip uninstall | upgrade {package_name}
> so_pip list | freeze
```

Docs
-----
* [Examples](https://github.com/matthewdeanmartin/so_pip/tree/main/examples)
* [Workflows](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/workflows.md)
* [CLI](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/cli.md)
* [Code reuse scanarios you see on StackOverflow](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/scenarios.md)
* [Features](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/features.md)
* [Security Considerations](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/security.md)
* [Prior Art](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/prior_art.md) Similar and overlapping tools.
* [Contributing *answers* to StackOverflow](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/contributing.md) AKA, fixing answers you found.
* [Attribution Compliance](https://github.com/matthewdeanmartin/so_pip/blob/main/docs/comply_with_cc_sa.md)
* [Contributing to so_pip](https://github.com/matthewdeanmartin/so_pip/blob/main/CONTRIBUTING.md)
* [Code of Conduct for so_pip](https://github.com/matthewdeanmartin/so_pip/blob/main/CODE_OF_CONDUCT.md)
madframe 0.0.1
An event-based framework
License: MIT

**madframe** - Functional State-Machine Framework for Python
- ~💢 TypeCheck at runtime~ (coming soon !)
- ☮️ Non intruisive
- 🧰 Functionnal
- 🕐 Event-Based

## Includes

### 🤖 Autofill

Autofill is the process of automaticaly composing a function usage deduced from the prototype naming and a given context.

```python
from madframe.autofill import autofill

context = {"value": "foo"}
def some_function(value):
    print(value)

await autofill(some_function, args=[], context=context) # notice that we don't pass any argument
> "foo"
# autofill undertand it has to retrieve the value from context if you don't specify it

await autofill(some_function, args["bar"], context=context) # we pass an argument
> "bar"
```
💁 **every madframe decorator uses `autofill`**
  
### 🕙 Routine
  
```python
from madframe.bindings import setup

@setup
def initialize():
    return {"some_key": "foo"}

@routine(1)
def print_foo(some_key):
    print(some_key) # -> prints "foo"
```

### 🏗️ Setup

Setup is used to define function to be ran at start-up. Those executions block the start-up and will abort the lauch if they fail.

### 📝 Perpetuate

`perpetuate` is `autofill` but the context is also updated with the result of the function (given it's a `dict`)

### 🚩 Wire

```python
from madframe.bindings import wire

something_is_done_when, do_something_when = wire()

fetch = do_something_when(fetch_data)
something_is_done_when(analyze_data)

fetch # is equivalent of `analyze_data(fetch_data)`
```

[![Package test](https://github.com/6r17/madframe/actions/workflows/test.yml/badge.svg)](https://github.com/6r17/madframe/actions/workflows/test.yml)
[![pypi](https://img.shields.io/pypi/v/madframe)](https://pypi.org/project/madframe/)
![python: >3.9](https://img.shields.io/badge/python-%3E3.9-informational)

### Installation

```bash
pip3 install madframe
```
langchain-discord 1.0.2
A list of tools for LangChain to power Discord (Webhooks, etc.).
License: MIT
Requires Python: >=3.7
Keywords: AI,LangChain,Discord

# Discord Langchain

Discord Langchain is a tool for Langchain to use Discord in agents.
It is currently in development and bugs may encounter.
If you find any bugs, please report it to the [issues](https://github.com/0w9/langchain-discord/issues).
Thanks for all your support!

## Installation (and example)

1. Install the package from PyPI.
```bash
$ python3 -m pip install langchain-discord
```

2. Import the package
```python
from langchain_discord import DiscordWebhookTool
```

... and all other required packages for the example
```python
from langchain import OpenAI
from langchain.agents import initialize_agent, AgentType
import os
```

1. Initialize and environment variables
```python
tools = [
    DiscordWebhookTool()
]

llm = OpenAI(temperature=0)
agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, verbose=True)

os.environ["WEBHOOK_URL"] = "https://discord.com/api/webhooks/<use the webhook url from your discord server>"
os.environ["WEBHOOK_USERNAME"] = "LangChain Agent"
```

2. Run the agent
```python
agent.run("Post a joke to the webhook!")
```

## Notice

This package is in development, more info above.
Currently the package was only tested on the `ZERO_SHOT_REACT_DESCRIPTION` agent.
I'm currently working to add a custom output parser, so it can be used on other agents.

## Support this project

You can support this project by giving a star to this repository, or by reporting all bugs.
I am the only developer of this project, so it may take a while to fix bugs.
You can find more info on my [Twitter](https://twitter.com/lennardeth), or on my [website](https://beachcode.de). 
Donations are also welcome, you can donate to my [BuyMeACoffee](https://www.buymeacoffee.com/lennardships).

## License
I don't know a lot about licenses, so I just used the MIT license.
In general it's free to use (both private and for enterprise), but you can't claim it as your own.