Py-allspice

Latest version: v3.7.0

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

2.3.0

This is a minor version bump. Only new functionality was added, and you may not
need to change your scripts to update to this version.

- New feature: BOM Generation. Instead of an example script, BOM generation is
included as a util within the library. See `allspice.utils.generate_bom` for
more details, and there is an example script in
[the examples/generate_bom directory](./examples/generate_bom/) that shows how
to use it, along with how to compute COGS from a generated BOM.
- `Team.add_repo` now takes either a string as a repo name or a `Repository`
object, instead of just a string as before. So you can:

py
team.add_repo(team_org, "repo_name")


Instead of:

py
repo = Repository.request(allspice_client, "team_org", "repo_name")
team.add_repo(team_org, repo)


This is useful if you are making a large number of changes in bulk, as you can
save time by not having to make a request for each repo you want to add to a
team.

2.2.0

This is a minor version bump. Only new functionality was added, and you may not
need to change your scripts to update to this version.

- Add Repository search API. See `Repository.search` for more details.
- Add APIs to get and set topics on a repository. See `Repository.add_topic` and
`Repository.get_topics` for more details. Also added example scripts to bulk
add topics and clone all repos with a certain topic.

2.1.0

This is a minor version bump. Only new functionality was added, and you may not
need to change your scripts to update to this version.

- Add APIs to create comments and attachments on Issues. In particular, you can
now use `Issue.create_comment` to add a comment, and
`Comment.create_attachment` to add an attachment to a comment.
- Add APIs for working with Design Reviews. See the `DesignReview` class for
more details, and `Repository.create_design_review` to make one.
- Add more filters for fetching Design Reviews and Issues.
`Repository.get_issues_state` is now deprecated, prefer using
`Repository.get_issues` with a state filter instead.
- Fixed an issue where `Repository.get_branches` only returned the first page of
branches in a repo.
- Add four more example scripts and a top level index for examples. Check
[the examples folder](./examples/) for more examples.

2.0.0

This is a breaking change. You will need to update your scripts to use py-allspice v2.

- Renamed Gitea across py-allspice to AllSpice. For example,

py
from gitea import Gitea

gitea = Gitea(URL, TOKEN)


to

py
from allspice import AllSpice

allspice_client = AllSpice(token_text=TOKEN)


- Added example scripts in [the examples directory](./examples).
- Added functions to get AllSpice generated svg and json for CAD files.
- Added optional Rate Limiting to the client. By default, Rate Limiting is on at 100
requests every minute. You can disable it by setting `ratelimiting` to `None` when
creating an instance of `AllSpice`.
- Added `units_map` argument when creating a new team.

Page 3 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.