semvec/pypi-packages huggingface dataset:
sir-equations 0.1.1
Advanced epidemiological model combining SIR dynamics with social-psychological behavior patterns
Requires Python: >=3.8

# Epidemiological Model with Social-Psychological Behavior

This package implements an advanced epidemiological modeling framework that combines traditional SIR (Susceptible-Infected-Recovered) dynamics with social-psychological behavior patterns based on General Adaptation Syndrome (GAS) theory. It's designed to provide deeper insights into disease transmission patterns by incorporating human behavioral responses during epidemics.

## Features
## Classical SIR Model
- Implementation of fundamental epidemiological equations
- Customizable infection and recovery rates
- Population conservation guarantees
- Numerical integration using advanced solvers
- Basic reproduction number (R0) calculations

## Extended GAS Model Integration

## Three distinct behavioral states:

- Ignorance (Sign)
- Resistance (Sres)
- Exhaustion (Sexh)


- State transition modeling
- Behavioral feedback mechanisms
- Time-dependent adaptation patterns

## Crowd Effect Modifications

- Superlinear alarm responses
- Population density considerations
- Social network effects
- Mass media influence factors
- Dynamic behavioral thresholds

## Advanced Analysis Tools

- Real-time simulation capabilities
- Data visualization utilities
- Parameter estimation functions
- Statistical analysis tools
- Cross-regional comparison frameworks

## Installation
pip install sir-equations

## Sample Code

from sir-equations import GASModel, run_simulation, analyze_data

# Create a model instance
model = GASModel(
    a=0.3,          # infection rate
    b=0.1,          # recovery rate
    k=0.2,          # crowd effect parameter
    Ip=0.02,        # media influence factor
    transition_rates=[1/50, 1/100],  # behavioral transition rates
    initial_conditions=[0.99, 0.01, 0]
)

# Run simulation
t, solution = run_simulation(model, t_span=100, t_points=1000)

# Analyze results
results = analyze_data(t, solution, model_type='GAS')
easy-rss 1.2.6
Simple Python package for interacting with RSS feeds
Requires Python: >=3.8

[![Generic badge](https://img.shields.io/badge/Licence-MIT-blue.svg)](https://shields.io/)
[![Generic badge](https://img.shields.io/badge/Maintained-yes-green.svg)](https://shields.io/)
[![Generic badge](https://img.shields.io/badge/easy_rss-1.2.6-red.svg)](https://pypi.org/project/easy-rss)
[![PyPI - Downloads](https://img.shields.io/pypi/dm/easy_rss)](https://pypi.org/project/easy-rss)

# easy_rss
Simple Python package for processing data from RSS feeds

Can parse both `Atom` and `RSS` formats

### Usage
```python
from easy_rss import *

rss = EasyRSS("https://rss.nytimes.com/services/xml/rss/nyt/World.xml")
for item in rss.get_news():
    print(f"\n{item}\n")

```

### Output
```
Item(title='Live Updates: Russia Unleashes New Strikes as Ukraine Prepares for Cabinet Shake-Up', link='https://www.nytimes.com/live/2024/09/04/world/ukraine-russia-missile-attacks', pubDate='Sep 04, 2024 01:30PM', description='Several ministers offered to resign as President Volodymyr Zelensky laid plans for a major reshuffle of Ukraine’s government. While rescuers searched the rubble of a deadly strike on a military academy in eastern Ukraine, another Russian attack killed seven in the west.')


Item(title='Poltava Strike Aftermath Drains Ukraine’s Seasoned Rescuers', link='https://www.nytimes.com/2024/09/04/world/europe/ukraine-poltava-strike-aftermath.html', pubDate='Sep 04, 2024 05:50AM', description='Repeated air-raid alerts have punctuated the search through the rubble in Poltava, in eastern Ukraine, after an attack that killed more than 50 people.')


Item(title='With New Taliban Manifesto, Afghan Women Fear the Worst', link='https://www.nytimes.com/2024/09/04/world/asia/women-taliban-prohibitions-afghanistan.html', pubDate='Sep 04, 2024 12:37PM', description='Three years into its rule, the movement has codified its harsh Islamic decrees into law that now includes a ban on women’s voices in public.')


Item(title='Cease-Fire Talks Present Tough Choices for Gazans Devastated by War', link='https://www.nytimes.com/2024/09/04/world/middleeast/gaza-war-cease-fire-israel.html', pubDate='Sep 04, 2024 05:04AM', description='Some say they will reluctantly stomach a postwar Israeli military presence in the territory if that allows them to go home. Others worry about another long-term occupation.')
```
reflex-ai 0.1.0a39
AI tools to build Reflex apps.
Requires Python: <4.0,>=3.10

# Reflex-AI

`reflex-ai` is a package to bring AI agent capabilities to your local development environment.

It also includes blocks for higher level components.

## 1. Install the Package

Install the package with pip:

```bash
pip install reflex-ai
```

NOTE: `reflex-ai` requires `reflex` 0.6.0 or later. Before this is out, make sure to run the following:

```bash
pip install git+https://github.com/reflex-dev/reflex.git@main
pip uninstall watchfiles
```

## 2. Create a Reflex Project

`reflex-ai` works with both new and existing Reflex projects. To create a new project, create a directory for your app and run:

```bash
reflex init
```     

See the [reflex docs](https://github.com/reflex-dev/reflex) for more information on creating Reflex projects.

## 3. Enable AI

To enable AI in your project, add the following to your main app file.

```bash
# Import the reflex-ai package (you MUST import it exactly like this)
from reflex_ai import enable

app = rx.App()
# Enable AI BEFORE you call any `add_page`.
enable(app)

# Add your pages as usual.
app.add_page(index)
```

## 4. Run the App

Run your app as usual:

While we're in beta, you need to take the following steps:

Export the backend URL for the AI agent:
```
export FLEXGEN_BACKEND_URL=https://rxh-prod-flexgen-agent.fly.dev/
```

Install `

Then run your app as usual:

```bash
reflex run
```

NOTE: You must be logged in to Reflex to use `reflex-ai`.

## 5. Access the AI Editor at `/edit`

Every page in your app will have an additional route by adding `/edit` to the end of the URL. For example, if your index page is at `localhost:3000`, you can access the AI editor at `localhost:3000/edit`. Similarly, if your about page is at `localhost:3000/about`, you can access the AI editor at `localhost:3000/about/edit`.

When `reflex-ai` is enabled, a scratch copy of your app will be created in the `.web/reflex-ai-tmp` directory for the AI to make changes without affecting your main app.

## 6. Select and Edit Elements

On an edit page, you can select elements by clicking on them. The selected element will be highlighted in the editor and the toolbar will show the selected code.

You can enter prompts in the toolbar input to generate new content for the selected element. The AI will generate new content based on the prompt and update the element in the editor.

### Caveats