Apys

Latest version: v3.2.1

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

Scan your dependencies

Page 1 of 2

3.2.1

Fix

Filter text on startup

3.1.5

Fix

Duplicate logs not happening anymore when using __cli__

3.1.4

Fixes

Minor fixes

CI/CD

Now the project has the lovely github CD <3

3.1.0

New Features

Environment Variables on Config

You can now use environment variables
like `$PORT` (for `PORT` env var), and set a default value if no env var is found
like `$PORT|8080` or `$PORT|8080|int` (if type is needed)

i.e.:



{
"key": "$API_KEY"
"db_url": "$DB|localhost"
"port": "$PORT|8080|int"
}

* `key` will now have the value of the `API_KEY` environment variable, or '$API_KEY' if env var does not exists
* `db_url` will now have the value of the `DB` environment variable, or 'localhost' if env var does not exists
* `port` will now have the value of the `PORT` environment variable, or 8080 if env var does not exists

3.0.0

New Features

Json translation

Now received

json
{
"var1.0": "value0",
"var1.1": "value1",
"var2.key1": "value2",
"var2.key2": "value3"
}


will be

json
{
"var1": [
"value0",
"value1"
],
"var2": {
"key1": "value2",
"key2": "value3"
}
}


Dropped Features

Json translation

Before received

json
{
"var1[0]": "value0",
"var1[1]": "value1",
"var2[key1]": "value2",
"var2[key2]": "value3"
}


would be

json
{
"var1": [
"value0",
"value1"
],
"var2": {
"key1": "value2",
"key2": "value3"
}
}

Now apys uses the new syntax above.

2.0.0

Features

Utils

Now you have to select what utils will be loaded on config, and on what order.

json
{
"util": [
"util1",
"util2"
]
}


> i.e.: demo/hello_world

Filters

You can now import filters inside a list, so if one of them doesn't return an error all error will be ignored and the flow will continue.

python
filters = [
'filter1',
['filter2', filter3]
]


> i.e.: demo/user_roles

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.