semvec/pypi-packages huggingface dataset:
abacatepay 1.0.9
Python SDK to interact with AbacatePay's API
Requires Python: <4.0,>=3.10

# AbacatePay SDK

![PyPI Version](https://img.shields.io/pypi/v/abacatepay?label=pypi%20package)
![PyPI Downloads](https://img.shields.io/pypi/dm/abacatepay)

> A Python SDK to simplify interactions with the AbacatePay API. <br />
> This SDK provides tools for billing management, customer handling, and more.


[English](README.md) | [Português](README-pt.md)

---

## Table of Contents

- [Installation](#installation)
- [Getting Started](#getting-started)
- [Usage Examples](#usage-examples)
  - [Create a Billing](#create-a-billing)
  - [List All Billings](#list-all-billings)
  - [Customer Management](#customer-management)
- [Contributing](#contributing)

---

## Installation

### Using pip

```bash
pip install abacatepay
```

### Using Poetry

```bash
poetry add abacatepay
```

---

## Getting Started

To use the SDK, import it and initialize the client with your API key:

```python
import abacatepay

client = abacatepay.AbacatePay("<your-api-key>")
```

---

## Usage Examples

### Create a Billing

```python
from abacatepay.products import Product


products = [
    Product(
        external_id="123",
        name="Test Product",
        quantity=1,
        price=50_00,
        description="Example product"
    ),
    # or as dict
    {
        'external_id': "321",
        'name': "Product as dict",
        'quantity': 1,
        'price': 10_00,
        'description': "Example using dict"
    }
]

billing = client.billing.create(
    products=products,
    return_url="https://yourwebsite.com/return",
    completion_url="https://yourwebsite.com/complete"
)

print(billing.data.url)
```

### List All Billings

```python
billings = client.billing.list()
for billing in billings:
    print(billing.id, billing.status)

print(len(billings))
```

### Customer Management

```python
from abacatepay.customers import CustomerMetadata

customer = CustomerMetadata(  # Its can also be only a dict
    email="customer@example.com",
    name="Customer Name",
    cellphone="(12) 3456-7890",
    tax_id="123-456-789-10"
)

created_customer = client.customers.create(customer)
print(created_customer.id)
```

---

## Contributing

We welcome contributions to the **AbacatePay SDK**!
To get started, please follow the steps in our [Contributing Guide](./CONTRIBUTING.md).
felarc 0.2.0
Add your description here
Requires Python: >=3.12

# Installation

## Development

I use [uv](https://docs.astral.sh/uv/) with
[direnv](https://direnv.net) and the Python+uv direnv
[layout](https://github.com/direnv/direnv/wiki/Python#uv).

```console
$ git clone https://github.com/st-walker/felarc
$ uv sync --group dev
$ uv run jupyter/pytest/whatever
$ # OR:
$ # OR: just jupyter with the .envrc:
$ direnv allow
$ # OR:
$ source .venv/bin/activate
```

# TODO

## Simple TBA

Source: [High Energy Beam Optics](https://bib-pubdb1.desy.de/record/352895)

  * [ ] Refactor notebook functions to package.
  * [ ] Introduce linear maps for solving equations to find best parameters.
  * [ ] Get reasonable Twiss parameters in the TBA based on similar value from the T20 design.
  * [ ] Track using STN beam with CSR and check result.

## New Family

Source: [A New Family of Isochronous Arcs](https://accelconf.web.cern.ch/p95/ARTICLES/RPC/RPC12.PDF)

  * [x] Implement the basic version with optionally different inner dipole strength.
  * [ ] Do the full parametristation.
  * [ ] Come up with some reasonable implementation.
  * [ ] Track with CSR.


## Simple DBA

  * [ ] Make a DBA.
  * [ ] Track and show impact of CSR
  * [ ] Make DBA

## Combined CSR Mitigation with Isochronicity

Source: [Quasi-isochronous triple-bend achromat with periodic stable optics and negligible coherent-synchrotron-radiation effects](https://journals.aps.org/prab/pdf/10.1103/PhysRevAccelBeams.24.060701)

  * [ ] Fill this out


## Miscellaneous

   * [ ] Add plot for D / rho for the dipoles
   * [ ] Add STN10 beam file for 100pC and 250pC with utilities for loading and artificial matching.
   * [ ] TBA plot showing the depenence of the dipole angles on the required dispersions at the inner dipole.
   * [ ] Derive the isochronicity condition.
psutils 3.3.14
Manipulate PDF and PostScript documents
Requires Python: >=3.12

# PDF and PostScript Utilities

Web site: https://github.com/rrthomas/psutils  
Maintainer: Reuben Thomas <rrt@sc3d.org>  

PSUtils is a suite of utilities for manipulating PDF and PostScript
documents. You can select and rearrange pages, including arrangement into
signatures for booklet printing, combine multple pages into a single page
for n-up printing, and resize, flip and rotate pages.

PSUtils is distributed under the GNU General Public License version 3, or,
at your option, any later version; see the file COPYING. (Some of the input
files in the tests directory are not under this license; see the file
COPYRIGHT in that directory.)

If you simply want to use PSUtils, you will find it in most GNU/Linux
distributions; it is available in brew for macOS and Cygwin for Windows.

PostScript files should conform to the PostScript Document Structuring
Conventions (DSC); however, PSUtils intentionally does not check this, as
some programs produce non-conforming output that can be successfully
processed anyway. If PSUtils does not work for you, check whether your
software needs to be configured to produce DSC-conformant PostScript.


## Installation

The easiest way to install PSUtils is from PyPI, the Python Package Index:

`pipx install psutils`

(You may first need to install [pipx](https://pipx.pypa.io).)

PSUtils requires libpaper, which allows named paper sizes to be used and
configured:

libpaper: https://github.com/rrthomas/libpaper

Unfortunately, `pipx` cannot install libpaper for you, but you might be able
to install it with `brew` or from other package managers. Otherwise, you can
install libpaper from source (see the link above).

### Installation from source or git

PSUtils requires Python 3.12 or later, a handful of Python libraries (listed
in `pyproject.toml`, and automatically installed by the build procedure).

In the source directory: `make build` (requires the `build` Python package
to be installed).

Note that to use the scripts before installing them, you need to run them
as Python modules; for example:

```
PYTHONPATH=. python -m psutils.command.psnup -2 foo.ps
```


## Bugs

Please send bug reports, patches and suggestions to the bug tracker or
maintainer (see the top of this file).


## Acknowledgements

PSUtils is written and maintained by Reuben Thomas. Version 1 was written by
Angus Duggan.

psselect in modeled on Chris Torek's dviselect, as is psbook, via Angus
Duggan's dvibook; pstops is modeled on Tom Rokicki's dvidvi. psjoin was
originally written by Tom Sato.