semvec/pypi-packages huggingface dataset:
bandcamp-auto-uploader 0.2.15
Upload albums to Bandcamp automatically without a Pro account
License: MIT
Requires Python: <4.0,>=3.10

# bandcamp-auto-uploader

Upload albums in bulk without a Bandcamp Pro account. Automatically set track artist/title/comments/art based on track metadata.
![Example](/docs/screenshot.png)

## Installation

### Binary
Download the latest release for your platform [here](https://github.com/7x11x13/bandcamp-auto-uploader/releases)

### PyPI
```
$ pip install bandcamp-auto-uploader
$ bc-upload
```

## Notes

- You must be signed in to the account you want to upload to in at least one browser (or you must supply a cookies.txt file)
- Supported browsers are found [here](https://github.com/borisbabic/browser_cookie3#contribute)
- RIFF tags are not currently supported by mutagen, so if you want your tracks to be named from the metadata make sure to use ID3 tags
- The program ignores any non-audio files in the album folder except for the first image it encounters which it makes the album cover
- Bandcamp only allows WAV, FLAC, and AIFF files to be uploaded

## Acknowledgements

- Thanks [SeyNoe](https://seynoe.bandcamp.com/) for testing
pyavatar 0.1.8
Generate simple user avatars from an input string.
License: MIT
Requires Python: >=3.10
Keywords: avatar

<h3 align="center">pyavatar</h3>
<p align="center">Create default user avatars from a given string</p>

<p align="center">
  <img src="https://raw.githubusercontent.com/smallwat3r/pyavatar/master/ext/1.png" />
  <img src="https://raw.githubusercontent.com/smallwat3r/pyavatar/master/ext/2.png" />
  <img src="https://raw.githubusercontent.com/smallwat3r/pyavatar/master/ext/3.png" />
</p>

<p align="center">
  <a href="https://codecov.io/gh/smallwat3r/pyavatar" rel="nofollow"><img src="https://codecov.io/gh/smallwat3r/pyavatar/branch/master/graph/badge.svg" style="max-width:100%;"></a>
  <a href="https://pypi.org/project/pyavatar" rel="nofollow"><img src="https://img.shields.io/pypi/wheel/pyavatar.svg" style="max-width:100%;"></a>
  <a href="https://github.com/smallwat3r/pyavatar/blob/master/LICENSE" rel="nofollow"><img src="https://img.shields.io/badge/License-MIT-green.svg" style="max-width:100%;"></a>
</p>

This package creates simple user avatars that can be used in web-applications.  
Avatars are generated from the first letter of a given string input.  

### Installation

Pyavatar is on Pypi so all you need is:
```
pip install pyavatar
```

### Usage

Generate an avatar  
```python
>>> from pyavatar import PyAvatar
>>>
>>> avatar = PyAvatar("smallwat3r", size=250)  # use a specific size
>>> avatar = PyAvatar("smallwat3r", capitalize=False)  # without capitalization
>>> avatar = PyAvatar("smallwat3r", color=(40, 176, 200))  # use a specific color
>>> avatar = PyAvatar("smallwat3r", fontpath="/Users/me/fonts/myfont.ttf")  # use a specific font
```

Change the avatar color
```python
>>> avatar.color
(191, 91, 81)
>>> avatar.change_color()  # random color
>>> avatar.color
(203, 22, 126) 
>>> avatar.change_color("#28b0c8")  # using an hex color code
>>> avatar.color
'#28b0c8'
```

Save the avatar as a base64 image
```python
>>> image = avatar.base64_image("jpeg")
'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBg ...'
```

You can then render it in an html tag with Jinja or another template engine
```html
<img src="{{ image }}" alt="My avatar" />
```

Or save it as a bytes array
```python
>>> avatar.stream("png")
b'\x89PNG\r\n\x1a\n\x00\x00\x00\rIHDR\x00\x00\x00\xfa\x00\x00 ...'
```

Or save it as a file locally
```python
>>> import os
>>> avatar.save(f"{os.getcwd()}/me.png")
```

### Development

#### Requirements

Make sure you're using a version of Python >= 3.10

- Create a virtual environment and install the dependencies
  ```
  make venv deps
  ```

#### Sanity checks

- Unit tests
  ```
  make tests
  ```

- Mypy 
  ```
  make mypy
  ```

- Ruff 
  ```
  make ruff
  ```

- Run all the above
  ```
  make ci
  ```

#### Code formatting

 We're using [YAPF](https://github.com/google/yapf) to format the code
```
make yapf
```

#### Release to Pypi

```
make release
```