semvec/pypi-packages huggingface dataset:
atomic-PAYTON-COATS 1.0.3
The modding platform for Python.
Requires Python: >=3.6


# Atomic

The Python modding platform.

Atomic is a modding API for Python, made to be fast and simple.

## Installation

Start by running `python3 -m pip install atomic` to install the Atomic mod loader and tools, then, copy the `mods/` folder into the root of your project.

<!-- To include Atomic in your project, add the `atomic` folder to your project's root folder. Then copy the `mods/` folder as well. -->

Next, add the following lines to your main file, or where your app/game gets initialized (Right before running the app/game):

```Python
from atomic import loader
loader.load_mods([
    'examplemod',
    # other mods to load.
])
```

Just like that, you've added Atomic.

Atomic will need some setup a well, in `mods/basemod/`, make some files and functions that can be called from other locations in your app/game. This way modders can hook into the Base Mod and in turn, mod your app/game.

## Modding

The modding system of Atomic is intentionally small and simple.

To make a mod, there are only a few steps.

First, make a new folder in the `mods` folder. Make sure to use underscores rather than spaces. You can use <kbd>a-Z</kbd>,<kbd>0-9</kbd>, and <kbd>_</kbd>. Note that the folder's name cannot start with a number.

Then, make a new `__init__.py` file inside your mod folder. This file gets executed when your mod is imported, so don't write much top-level code. Try to only use imports at the top-level.

Inside this `__init__.py` file, make three new functions. `on_load(basemod)`, `post_load(basemod, mods)`, and `get_name()`.

`on_load(basemod)` is called when your mod is loaded, not all mods are loaded yet, so only basemod is provided in the args. This function has no return values.

`post_load(basemod, mods)` is called after all mods are loaded, so both basemod and all mods can be provided as arguments. This function also has no return values.

`get_name()` is called any time something needs to get the name of your mod. The return value of this function is the name of your mod.

## Projects & Examples

If you make a project or an example using Atomic, let me know and I can put it here!

Nothing is here yet!
oeistools 0.0.10
A small package for working with integer sequences and computing generating functions


# OEIS Tools

A small Python package for working with integer sequences, and computing generating functions.




## Installation

Install oeistools with pip:

```bash
pip install oeistools
```
    
## Usage

The oeistools package allows you to create instances of a Sequence class, which can compute generating functions, additional terms in the sequence, and optionally output strings formatted to work with LaTeX.

The first input defines the recurrence relation, with the following format:

\[\[c<sub>1</sub>, i], \[c<sub>2</sub>, j], ...]

where the sequence has a constant coefficient recurrence relation of a<sub>n</sub> = c<sub>1</sub>a<sub>n-i</sub> + c<sub>2</sub>a<sub>n-j</sub> + ...

The second input is an array of the starting terms.
```python
from oeistools import Sequence

f_n = Sequence([[1,1], [1,2]], [1,1])

```

## Examples

The following example shows how to initialize the Fibonacci sequence, and use various methods from sequencetools

The Fibonacci numbers have a second order recurrence of f<sub>n</sub> = f<sub>n-1</sub> + f<sub>n-2<sub>

```python
from oeistools import Sequence

fib = Sequence([[1,1], [1,2]], [1,1])

print(fib.first_n_terms(10))
print(fib.gf())
print(fib.term(50))
print(fib.as_latex_table(terms=5))
```
Output:
```
>>> [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
>>> -1/(x**2 + x - 1)
>>> 12586269025
>>> \begin{tabular}{l|lllll}
    n & 1 & 2 & 3 & 4 & 5\\ 
    \hline 
    $a_n$ & 1 & 1 & 2 & 3 & 5
    \end{tabular}
```

This code creates the Fibonacci sequence, starting with 1, 1, and then:

- Prints the first 10 terms of the sequence in an array
- Prints the generating functions
- Prints the 50th term of the sequence
- Prints out text that can be pasted into a LaTeX processor to display a table of values