---
Product: barcode
Platform: python
Page Type: index
Canonical URL: https://docs.aspose.org/barcode/python/getting-started/
---

# Getting Started

Get up and running with Aspose.BarCode FOSS for Python: prerequisites, installation, and your first barcode in under five minutes.

## Getting Started with Aspose.BarCode FOSS for Python

Welcome to **Aspose.BarCode FOSS for Python**, a free, MIT-licensed library for generating standards-compliant 1D and 2D barcodes in pure Python. This guide takes you from a fresh environment to a working barcode in a few minutes.

---

## Prerequisites

| Requirement | Detail |
|-------------|--------|
| Python version | 3.12 or later |
| Package manager | pip (bundled with CPython) |
| Operating system | Windows, macOS, Linux |
| Compiler / build tools | None required |
| System packages | None required |

---

## Installation

Install using pip:

```bash
git clone https://github.com/aspose-barcode-foss/Aspose.BarCode-FOSS-for-Python.git
cd Aspose.BarCode-FOSS-for-Python
pip install -e .
```

See the [Installation Guide](installation/) for virtual-environment setup, verification steps, and a quick-start code example.

---

## What You Can Do with Aspose.BarCode FOSS for Python

Once installed, you can immediately:

- **Generate** Code 128, Code 39, EAN-13, EAN-8, QR Code, UPC-A, and UPC-E barcodes
- **Render** barcodes to SVG and PNG output formats
- **Configure** per-symbology encode options (encode modes, error correction levels, check digits)
- **Control** rendering with scale, DPI, colors, quiet zone, and text display options
- **Validate** input with typed exceptions (`InvalidInputError`, `EncodingError`) before encoding begins

---

## Quick Start

The following code generates a Code 128 barcode and writes it as an SVG file:

```python
import aspose_barcode_foss as barcode

bc = barcode.code128("Hello World")
svg = bc.to_svg()

with open("barcode.svg", "w") as f:
    f.write(svg)
```

---

## Next Steps

- **[Installation Guide](installation/)**: Virtual environment setup, installation, and verification
- **[Quickstart](quickstart/)**: First working barcode with encode and render options
- **[Developer Guide](../developer-guide/)**: Per-symbology encode options, rendering controls, and code examples

## See Also

- [Aspose.BarCode for Python — Enterprise Documentation](https://docs.aspose.com/barcode/python-net/)

## Related Topics
- [Installation](https://docs.aspose.org/barcode/python/getting-started/installation): Install Aspose.BarCode FOSS for Python via pip, verify the installation, set up a virtual environment, and generate your first barcode.
- [License](https://docs.aspose.org/barcode/python/getting-started/license): Aspose.BarCode FOSS for Python is released under the MIT License, free for commercial, open-source, and internal use with no API key, no usage limits, and no registration required.
- [Quickstart](https://docs.aspose.org/barcode/python/getting-started/quickstart): Generate your first barcode with Aspose.BarCode FOSS for Python using Code 128, QR Code, and EAN-13 symbologies with encode and render options.