Pymacapp

Latest version: v4.0.2

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

Scan your dependencies

Page 4 of 5

1.2.0

Adds support for Resources! This allows users to take advantage of the --add-data command that pyinstaller utilizes.
This feature is currently in alpha.

...
from pymacapp import Resource
...
app.resource(Resource("./src/README.md"))

You can also create the Resource(...) directly in your application and then import to your build file.

Method 1: Preferred

in: main.py
from pymacapp import Resource
RESOURCES:list[Resource] = []
readme = Resource("./README.md")
RESOURCES.append(readme)
get path of the file and use the resource with the Resource.path() method
readme_path = readme.path()



in build.py
from main import RESOURCES
...
add all resources in RESOURCES to app
[app.resource(resource) for resource in RESOURCES]


Method 2: Individual/Granular Resource Management

in: main.py
from pymacapp import Resource
readme = Resource("./README.md")
get path of the file and use the resource with the Resource.path() method
readme_path = readme.path()



in build.py
from main import readme
...
app.resource(readme)

1.1.1

1.1.0

Fixes default entitlements issue causing code signing and then notarization to fail.

1.0.0

First major release with full features!

0.1.0

0.0.5

Page 4 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.