File: index.rst

package info (click to toggle)
aggdraw 1.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,480 kB
  • sloc: cpp: 41,481; python: 291; makefile: 19
file content (64 lines) | stat: -rw-r--r-- 1,929 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
AggDraw
=======

The AggDraw library provides a python interface on top of
`the AGG library <http://www.antigrain.com/>`_. The library was originally
developed by Fredrik Lundh (effbot), but has since been picked up by various
developers. It is currently maintained by the PyTroll developmer group. The
official repository can be found on GitHub:

https://github.com/pytroll/aggdraw

The original documentation by effbot is
`still available <http://effbot.org/zone/aggdraw-index.htm>`_ but may be out
of date with the current version of the library. Original examples will be
migrated as time is available (pull requests welcome).

Installation
------------

Aggdraw is available on Linux, OSX, and Windows. It can be installed from PyPI
with pip:

.. code-block:: bash

    pip install aggdraw

Or from conda with the conda-forge channel:

.. code-block:: bash

    conda install -c conda-forge aggdraw

Free-threading support
----------------------

Basic free-threading compatibility has been enabled starting with the Python
3.14 wheels of aggdraw 1.4.0. However, only the minimum steps have been taken
to let Python 3.14's free-threaded build know that aggdraw could be used
without the GIL. No additional locking or redesign of the library has been
done.

Aggdraw itself should have no global state, but each individual object is free
to have internal state. It is up to the user to limit interactions for an
aggdraw object to a single thread or to protect against concurrent access
using locks. Even with this in mind, free-threading support in aggdraw is
extremely unstable and experimental. If you have a use case for aggdraw
in a free-threading environment please file an issue on GitHub to describe
your use case and how it is going.

API
---

.. automodule:: aggdraw
    :members:
    :undoc-members:
    :show-inheritance:


Indices and tables
------------------

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`