semvec/pypi-packages huggingface dataset:
slipdeck 0.2.0
Quickly generate professional packing slips for TCGPlayer and other marketplaces.
Requires Python: >=3.7

# SlipDeck 🎴📦

SlipDeck is an open-source Python utility built specifically for Trading Card Game (TCG) sellers. Easily transform your order details from TCGPlayer into professional, 4x6-compatible packing slips, sorted pull sheets, and labels.

**Other markets like eBay, Mercari and PriceCharting coming soon!**

SlipDeck helps you save money and streamline your shipping process—saving you valuable time and effort!

Happy selling & collecting! 🎴✨

## Save Money 💰

By printing packing slips on 4x6 thermal paper, you'll significantly reduce costs associated with traditional inkjet printers. Thermal printing eliminates ink usage and greatly reduces paper waste, saving you money, boosting your bottom line and contributing to a more efficient, eco-friendly operation.

## Features ⚙️

- ✅ Generate clean, professional packing slips for TCG orders
- 🖨 Optimized for 4x6 label printers (thermal labels)
- 📑 Create organized pull sheets grouped by Game for easy order fulfillment
- 🎯 Compatible with popular TCG marketplaces (TCGPlayer, etc.)
- 📚 Multi-page order compatible

## Installation 💻

SlipDeck can be installed easily via pip:

```bash
pip install slipdeck
```

After installation, SlipDeck is simple to use from your terminal:

```bash
slipdeck --help
```

## Getting Started 🚀

1. Set your company name as an environment variable:

   ```bash
   export SLIPDECK_COMPANY_NAME="Your TCG Shop Name"
   ```

2. Download your packing slips from TCGPlayer:

   - Select the orders you want to process
   - Click on **Packing Slip** and select **Print Default**
   - Save the generated PDF file

3. Process your orders with SlipDeck:
   ```bash
   slipdeck /path/to/your/TCGplayer_PackingSlips.pdf
   ```

Your packing slips and pull sheets will be generated automatically!

## Contributing 🤝

We welcome contributions! Feel free to open issues, suggest features, or submit pull requests.

### Development

For local development:

```bash
pip install -e .
```

If you'd like to add a new dependency:

```bash
pip install pip-tools
pip-compile requirements.in --output-file requirements.txt
pip-sync requirements.txt
```

## License

MIT
TxtToImg 0.1.2
A Python library to create images with customizable text overlays.
Requires Python: >=3.6

# TxtToImg

TxtToImg is a Python library that allows you to add text to an image, either by providing a URL for the background image or by generating a gradient background.

## Installation

To install TxtToImg, you can use pip:

```
pip install TxtToImg
```

## Usage

Here's an example of how to use the TxtToImg class:

```python
from TxtToImg import Txt2Img

# Create an instance of the Txt2Img class
img_generator = Txt2Img(
    text="Hello, World!",
    url="https://example.com/background.jpg",
    width=800,
    height=600,
    text_color=(255, 255, 255),  # White text
    text_background_color=(0, 0, 0),  # Black background
    font_scale=2,
    font_thickness=3,
    text_position="center"
)

# Create the image
img_generator.create()

# Show the image
img_generator.show()

# Save the image
img_generator.download()
```

## API

The TxtToImg class has the following methods:

- `__init__(self, text, url=None, width=800, height=600, **kwargs)`: Initializes the TxtToImg class with the specified parameters.
- `open_image_from_url(self)`: Downloads the image from the provided URL and returns it as a NumPy array.
- `create_gradient(self)`: Creates a gradient background image.
- `add_text(self, img)`: Adds the specified text to the image.
- `create(self)`: Generates the final image by either opening the image from the URL or creating a gradient background, and then adding the text to the image.
- `show(self)`: Displays the generated image using OpenCV.
- `download(self)`: Saves the generated image to a file with the same name as the text.

## License

This project is licensed under the [MIT License](LICENSE).