Artefacts

Latest version: v1.2.0

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

Scan your dependencies

1.2.0

Enhancements ✨

- 102 - Add an api method `api.tags` that returns a mapping from tags to their resources.
- 100 - Added an api method `api.analyses` for querying a dbt project's analysis queries
- 89 - Added a parameter to api methods to enable including disabled resources. By default disabled resources are excluded when using the api.
- 85 - Improved the configuration of artefacts to now allow users to provide set configuration directly in python via the `artefacts.Config` object, in addition to using environment variables and a pyproject.toml file. Please see the [documentation for configuration](https://tjwaterman99.github.io/artefacts/config.html) to learn more.
- 84 - Updated the documentation for model attributes to now show full documentation when using tools like Pylance.

Bugfixes 🐛

- 97 - Fixed a typo in the instructions for configuring the dev environment.

Under the hood 🚧

- 79 - Turned on linters for type checking and code style. These linters will help ensure our code works with type-hinting systems like Pylance. Future releases will continue to improve the usage of features enabled by the type-hinting system.
- 46 - Created separate models for the various different types of resources contained in the manifest's `nodes` attribute. We now have seperate models for `Test`, `Seed`, etc, instead of a single generic `ManifestNode` resource. These separate models will help us eventually provide better functionality for each unique resource type.

1.1.0

Enhancements ✨

- 68 - Added new api methods for listing a dbt project's snapshots and operators.
- 33 - Added parameters to api methods to enable returning only resources from a specific dbt package. This makes it easier to filter out resources from installed packages like `dbt_utils`.
- 38 - Added links to the reference documentation in the error reporting when trying to reference an invalid attribute of a resource.
- 61 - Added a new attribute `resources` and method `iter_resource_type` to the `Manifest` object. These methods make selecting different types of resources within a dbt project much simpler.
- 57 - Added badges to the README showing the supported versions of `artefacts` various dependencies (dbt-core & Python).
- 43 - Improved the display of models when printing them interactively from the Python console.
- 17 - Added various deserializers that had previously been left as simple Python dictionaries.

Bugfixes 🐛

- 53 - Fixed `artefacts.__version__` not working correctly (🤞 , We'll have to confirm this is working once the package is deployed to PyPI).
- 10 - Fixed the `dbt-starter-project` test project using the wrong version of dbt-core.
- 23 - Fixed pylance not working with Poetry inside the dev environment.
- 71 - Fixed the README to now display all supported Python versions.
- 73 - Fixed some resources not correctly referencing data across all available artifacts that reference that resource.

Under the hood 🚧

- 75 - Added black, flake8, and mypy tools to the dev environment. We will incrementally fix the issues discovered by these tools over future releases.
- 19 - Added functionality to enable referencing the artifacts created by the [poffertjes_shop](https://github.com/tjwaterman99/poffertjes_shop) project in the doctests. This functionality will enable us to add better usage examples in the documentation.
- 65 - Added test coverage reports via [coveralls](https://coveralls.io/). We can now monitor changes in test coverage, as well as fail PRs that decrease test coverage.
- 56, 64 - Added tests to ensure every deserializer model is included in the reference documentation and is tested at least once.
- 55 - Split the `core` module into `deserializers`, `mixins`, and `loaders`. This refactor will make it easier to added new types of loaders, eg for pulling artifacts from dbt cloud.

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.