semvec/pypi-packages huggingface dataset:
virtualembed 0.0.12
A package for visualize discord embeds
Requires Python: >=3.6

# Virtual Embed
[![name](https://img.shields.io/pypi/v/virtualembed?style=for-the-badge)](https://pypi.org/project/virtualembed/)
[![CodeFactor](https://www.codefactor.io/repository/github/fenish/virtualembed/badge)](https://www.codefactor.io/repository/github/fenish/virtualembed)

With this api you can get your embeds as image (If you want to create embed visualizer for your bot, this api is for you!)

**Installation**
```
pip install virtualembed
```



# Tutorial
If you have discord embed already you can convert into virtualembed
```py
embed = discord.Embed()
embed.title = "test"
embed.description = "test"
embed.add_field(name="Virtual Embeds?", value="Virtual EMBEDSS !!", inline=True)
embed.add_field(name="Whats python?", value="Python IS AWESOME!!", inline=True)


virtualembed = virtualembed_from_embed(e)
# This will return virtualembed object
```


Lets create Embed
 Object
```py
embed = VirtualEmbed(title="Virtual Embeds!",
                     description="With this api you can get embeds as images like this!!",
                     color="#fff")
```
If you say i don't want to make embed sender as **Ugly clyde** you can do this
```py
embed.bot_name = "Your bot Name"
embed.bot_avatar = "Avatar url"
```

Lets add some fields because it looks empty
```py
embed.add_field("Embed Fields Are", "SO COOOOL!", True)
embed.add_field("Also Inline Support", "Aweeeesome", True)
```

Who doesn't want images on embeds
```py
embed.set_author("Python Is Awesome",
                 icon_url="https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
                 
embed.set_thumbnail("https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
embed.set_image("https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
```

At Total
```py
embed = VirtualEmbed(title="Virtual Embeds!",
                     description="With this api you can get embeds as images like this!!",
                     color="#fff")
                     
embed.add_field("Embed Fields Are", "SO COOOOL!", True)
embed.add_field("Also Inline Support", "Aweeeesome", True)

embed.set_author("Python Is Awesome",
                 icon_url="https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
                 
embed.set_thumbnail("https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
embed.set_image("https://berkayyildiz.com/wp-content/uploads/2018/06/opengraph-icon-200x200.png")
```

##### We created our first embed, now lets see how can we use this object
With this line you can get your image object
```py
embed_img = embed.get_embed_as_image()
```

To save our image
```py
embed_img.save_img("path/to/example_embed.png")
# Save embed to target path
```
Or i just want to get as bytes
```py
embed_img.get_buffer()
# This will return BytesIO object
```

# Final Result
![Virtual Embed Is Awesome](https://i.imgur.com/niCkxhB.jpg)
ishareslib 0.1.0
A library for reading data from the ishares product family.

# ishareslib

[![Codecov](https://img.shields.io/codecov/c/github/iamfj/ishareslib?label=Code%20Coverage&logo=codecov&logoColor=fff)](https://codecov.io/gh/iamfj/ishareslib)
[![Quality Workflow](https://github.com/iamfj/ishareslib/actions/workflows/quality.yml/badge.svg)](https://github.com/iamfj/ishareslib/actions/workflows/quality.yml)
[![Integration Workflow](https://github.com/iamfj/ishareslib/actions/workflows/integrate.yml/badge.svg)](https://github.com/iamfj/ishareslib/actions/workflows/integrate.yml)

The ishareslib is a library that simplifies the retrieval of data on the ishares product family in python.

By reverse engineering a clear interface was created to be able to process the data easily. During development, care was
taken to reduce the number of requests against the ishares server. In addition, custom adapters for user agent and proxy
server can be connected to disguise the traffic.

### Installing

```shell
pip install ishareslib
```

## Usage

This is how you use this interface in your environment:

```python
import Client
from ishareslib.client

client = Client()
client.get_products()  # This will be a pandas dataframe
```

## Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing
purposes.

### Prerequisites

What things you need to install the software and how to install them

```shell
pip install . .[dev] .[test]
```

## Running the tests

The tests are split into two groups unit tests (without explicit group) and integration test. The unit tests are started
with every pull request. The integration tests run time-controlled to detect a change of the ishares interfaces quickly
to be able to adapt the library.

How to run unit tests:

```shell
pytest -m "not integration"
```

How to run integration tests:

```shell
pytest -m "integration"
```

The coverage of the tests should always be above 90 percent. Please make sure that your tests are thorough and well
thought out.

## Versioning

We use [SemVer](http://semver.org/) for versioning. For the versions available, see
the [tags on this repository](https://github.com/iamfj/ishareslib/tags)

## License

This project is licensed under the GNU GENERAL PUBLIC License - see the [LICENSE](LICENSE) file for details