semvec/pypi-packages huggingface dataset:
dpyrandmeme 1.0.1rc32.post1
Random memes fetched for use in discord.py bot commands.
Requires Python: >=3.7

# dpyrandmeme: random memes for discord.py


**What does the library do?**
This library simply uses aiohttp to collect json data from a reddit page and turns it into a link inorder to be used while also storing the memes and returning the meme as a discord embed before sending back to the discord bot to send to the member who sent that command. It is the same meme library that is currently being used inside Paradigm.
<br>
**PyPi library link:**
https://pypi.org/project/dpyrandmeme/
<br><br>
**USAGE OF CODE IN A DISCORD SLASH COMMAND COG:**

```python
"""
  This snippet is the actual meme slash command code from the Paradigm Source Code.
"""

from discord.ext import commands
from dpyrandmeme import pyrandmeme


class Meme(commands.Cog):
    def __init__(self, client):
        self.client = client

    @commands.hybrid_command()
    @commands.cooldown(1, 1, commands.BucketType.user)
    async def meme(self, ctx):
        """
        Get some random memes from reddit.
        """

        await ctx.send(embed=await pyrandmeme())

async def setup(client):
    await client.add_cog(Meme(client))
```
<br>
<br>
**Credits:**

d33pak123: https://github.com/d33pak123/Pyrandmeme-python-library, <br>
Microsoft for the template.
<br>
<br>
<br>
<br>
©2023 aviance. Project is open-source through the MIT License.
streamlit-cardv2 0.0.1rc4
A streamlit component, to make UI cards
Requires Python: >=3.8
Keywords: card streamlit streamlit-component

# st-card

Streamlit Component, for a UI card

authors - [@gamcoh](https://github.com/gamcoh) @Pernod Ricard

## Installation

Install `streamlit-card` with pip
```bash
pip install streamlit-card 
```

usage, import the `card` function from `streamlit_card`
```py
from streamlit_card import card

hasClicked = card(
  title="Hello World!",
  text="Some description",
  image="http://placekitten.com/200/300"
  url="https://github.com/gamcoh/st-card"
)
```
applier 0.4.0
Automatically apply SaltStack highstate on webhooks
Requires Python: >=3.9,<4.0

# applier

Automatically apply SaltStack highstate on GitHub webhooks.


### Configuration

The following environment variables can be configured:

| Environment Variable       | Default        | Description                                                    |
|----------------------------|----------------|----------------------------------------------------------------|
| DEFAULT_BRANCH             | main           | The branch to perform updates on, typically the default branch |
| REDIS_HOST                 | 127.0.0.1      | The hostname/IP address of the Redis instance                  |
| REDIS_PORT                 | 6379           | The port the Redis instance is running on                      |
| SECRET_TTL                 | 900            | How many seconds to cache secrets for                          |
| WEBHOOK_SECRET_SDB_KEY     | github-webhook | The SDB secret path to read from                               |
| WEBHOOK_SECRET_SDB_BACKEND | secrets        | The SDB secret backend to use                                  |
Py-Trading 0.4.9.11
A Python module for trading information.
Requires Python: >=3.6

# Pytrading
This package contains modules with functions that assist day and swing traders by aiding them in keeping track of their positions 
and trending stocks.

## Installation
```bash
pip install py-trading
```

## Usage
```python
import py_trading as pytrd

my_portfolio = pytrd.Portfolio(['AAPL', 'TSLA', 'F', 'COKE'])
for stock in my_portfolio:
	stock.update_stock() 
	print(stock.get_month_data())
	print(stock.daily_change_percentage())
	print(stock.get_last_updated())
	print(stock.daily_high_change_percentage())
	print(stock.daily_stats())
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
hwtest 0.0.1
A framework for testing hardware
Requires Python: >=3.7

Setup
=====

```
pip install hatch
```

Running Tests
-------------

```
hatch run cov
```

Running Examples
----------------

```
hatch run examples/network.py
```

Using InfluxDB
--------------

`hwtest` includes an InfluxDB telemetry logger. If you choose to use this, make sure you have InfluxDB configured by following the [setup guide](https://docs.influxdata.com/influxdb/v2.6/install/?t=Linux). Be sure to install version 2+, as that's the API the logger uses.

You'll also need to create an org and access token inside the InfluxDB UI (accessible via http://localhost:8086/ if running locally). The logger creates the InfluxDB client using [environment variables](https://pypi.org/project/influxdb-client/#via-environment-properties) for configuration. Specifically, you'll need to set at least `INFLUXDB_V2_ORG` and `INFLUXDB_V2_TOKEN`.

To test your configuration, run:

```
hatch run examples/influxdb.py
```

This should write 10 datapoints to the bucket named `network-example`.

You can also try the subprocess driver example, which runs the same test as the `influxdb.py` example, but attempts to log telemetry at 50 Hz in the background while running the test.

Distributing `hwtest`
----------------------

You may need to distribute a copy of `hwtest` to customers so they can run tests against your hardware. In order to create packages you can distribute, run

```
hatch build
```

This will create a `hwtest-*.whl` file under a `dist/` directory. This will include just the source code, not any examples, tests, or documentation. This `.whl` file can be installed on another machine with `pip install filename.whl`. You don't need `hatch` to use the `.whl` file.