Ampapi

Latest version: v2604.4.2

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

Scan your dependencies

Page 2 of 2

0.0.35b

__init__.py
- Version bump `0.0.35b`

README.md
- Updated description and key features.
- Added coding examples.

requirements.txt
- Added `setuptools` to requirements.

ads.py
- Removed unused methods.

base.py
- Changed type check of `parse_data()` data parameter.

core.py
- Changed return type `Status` to `AppStatus`.

types.py
- Changed `Status` to `AppStatus`.

instance.py
- Added `State` property to return `AppState`
- Added `AppStatus` and `Updates` to class inheritance.
- Added `.get_status()` methods to AMPInstance to set self class attributes.
- Added `get_updates()` methods to AMPInstance to set self class attributes.

0.0.34b

__init__.py
- Switched from `ALPHA` to `BETA`
- Version bump `0.0.34b`

Readme.md
- Updated documentation.
- Referenced the package as a wrapper now.

setup.py
- Updated name and description to properly represent the package as a wrapper.

ads.py
- Removed prints from development.
- Updated doc strings and methods for `format_data` parameter.
- Added logic for when there is no instances from `get_instances()`

adsmodule.py
- Added all endpoints for "API/ADSModule/".
- Formatted `get_instance()` to pep8.

base.py
- Added global var `FORMAT_DATA`
- Added time to live value for sessions. See `session_ttl`, default 240 seconds.
- Added `FAILED_API` for exception raising.
- Added `format_data` property to access the global `FORMAT_DATA`
- Added `camel_case_data()` method to camel case keys of a dictionary.
- Added `dataclass_to_dict()` to unpack a dataclass into a dictionary.
- Added `json_to_dataclass()` to format the JSON response from API calls into dataclasses.
- Refactored `_call_api()` and added support for `FORMAT_DATA`.
- Moved data formatting into `json_to_dataclass()` method.
- Refactored `_connect()` and improved session handling.

bridge.py
- Removed commented out code and commented out print statements.
- Revered `Self` change due to import error.

core.py
- Added remaining `API/Core` endpoints and added `format_data` functionality.
- Updated doc strings.

filebackup.py
- Updated method functionality to support `format_data`.
- Updated doc strings to match.
- Finished remaining API endpoints.
- TODO - Finish return types.

filemanager.py
- Updated method functionality to support `format_data`.
- Updated doc strings to match.
- Finished remaining API endpoints.
- TODO - Finish return types.

instance.py
- Commented out print statements.

minecraft.py
- Updated method functionality to support `format_data`.
- Updated doc strings to match.

types.py
- Added multiple dataclasses to support added Endpoints.
- Added `APIParams()` to better assist users with connection setup.
- Added `APISession()` to better handle session TTL values.
- Updated multiple dataclasses to better handle data formatting.

Overall
- Removed `api_spec.md` and created Instance Module specific documents.

utils.py
- Added `instance_type` parameter to `parse_get_api_spec()` to differentiate API endpoint specs in files.

setup.py
- Added `CHANGELOG.md` to packages.

Changelog.md
- Version bump `0.0.33a`.

0.0.33a

__init__.py
- Version bump `0.0.33a`.

Changelog.md
- Version bump `0.0.33a`.

ads.py
- Added `if TYPE_CHECKING` for Self

bridge.py
- Added `if TYPE_CHECKING` for Self

0.0.32a

__init__.py
- Version bump to `0.0.32a`.
- Version bump `0.0.31a`

Changelog.md
- Fixed layout of Version line.

ads.py
- Added logic to check `Instance.Module` attribute to create `AMPMinecraftInstance`.
- Updated `ADSInstance.AvailableInstances` return types to include `AMPMinecraftInstance`.

adsmodule.py
- Added docstring to `add_datastore()`.
- Added `await self._connect()` to all methods.

base.py
- Added `MINECRAFT_ONLY` attribute for logic checks.
- Removed `await self._connect()` from `_call_api()`.

core.py
- Added `await self._connect()` to all methods.

filebackup.py
- Added `await self._connect()` to all methods.

filemanager.py
- Added `await self._connect()` to all methods.
- Added comments for remaining filemanager methods.

instance.py
- Updated `__init__()` print debug for better naming conventions.
- Added `__all__` property to include `AMPInstance` and `AMPMinecraftInstance`.
- Added `AMPMinecraftInstance` class.

minecraft.py
- Creation of all Minecraft specific API endpoints and methods pertaining to them.
- Partial completion of dataclasses, docstrings and return types.
- Implemented logic to check `.Module` != `Minecraft` on all calls to prevent failure outside of the Instance class.
- Prefixed all methods with `mc_`.

types.py
- Added `BukkitPlugin()` dataclass.

Changelog.md
- Creation of Changelog.md and added `0.0.30a` under `0.0.31a`

Setup.py
- Added `project_urls` to `setup()`
- Github and Changelog links

Base.py
- Added `TYPE_CHECKING` to fix `Self` import at runtime error.

0.0.31a

Overall Changes -
- Update "DEBUG" prints to provide better information.
- Added *ADS Only* requirements to specific end points to prevent failure. -
- Version bumped `__init__.py`

Setup.py
- Added `project_urls=`
- Added *Github* and *Changelog* links for Pypi.

Core.py -
- Added `Core.add_datastore()`.
- Added `Core.get_api_spec()` to access API information for an ADS or Instance.

Base.py -
- Moved `Base._on_connect()` into `Base._call_api()` to simply code.
- Added docstring to `Base.parse_data()`
- Fixed camelcase issue with `Base.InstanceId` to `Base.InstanceID` to match Controller to Instance dataclass.

Util.py -
- Added `APIUtil.parse_get_api_spec()` to create the `./docs/api_spec.md`
- Fixed filepaths for `APIUtil` functions to point to `../docs/`

Instance.py -
- Added `AMPInstance` class to bring together API and Instance dataclass similar to `ADSInstance`

Minecraft.py -
- Added `minecraft.py` to house `MinecraftModule` API endpoints. (Still needs dataclasses/returns finished)

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.