ossiq 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ossiq-0.1.0/AUTHORS +8 -0
- ossiq-0.1.0/CONTRIBUTING.md +119 -0
- ossiq-0.1.0/LICENSE +661 -0
- ossiq-0.1.0/MANIFEST.in +10 -0
- ossiq-0.1.0/PKG-INFO +849 -0
- ossiq-0.1.0/README.md +126 -0
- ossiq-0.1.0/docs/explanation.md +54 -0
- ossiq-0.1.0/docs/getting-started.md +79 -0
- ossiq-0.1.0/docs/how-to-guides.md +18 -0
- ossiq-0.1.0/docs/img/ossiq-html-report.png +0 -0
- ossiq-0.1.0/docs/index.md +5 -0
- ossiq-0.1.0/docs/reference.md +144 -0
- ossiq-0.1.0/docs/tutorials.md +71 -0
- ossiq-0.1.0/pyproject.toml +149 -0
- ossiq-0.1.0/setup.cfg +4 -0
- ossiq-0.1.0/src/ossiq/__init__.py +4 -0
- ossiq-0.1.0/src/ossiq/__main__.py +4 -0
- ossiq-0.1.0/src/ossiq/adapters/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/adapters/api.py +47 -0
- ossiq-0.1.0/src/ossiq/adapters/api_github.py +295 -0
- ossiq-0.1.0/src/ossiq/adapters/api_interfaces.py +138 -0
- ossiq-0.1.0/src/ossiq/adapters/api_npm.py +195 -0
- ossiq-0.1.0/src/ossiq/adapters/api_osv.py +98 -0
- ossiq-0.1.0/src/ossiq/adapters/api_pypi.py +274 -0
- ossiq-0.1.0/src/ossiq/adapters/detectors.py +19 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/api.py +32 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/api_npm.py +217 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/api_pip.py +251 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/api_pip_classic.py +184 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/api_uv.py +172 -0
- ossiq-0.1.0/src/ossiq/adapters/package_managers/utils.py +25 -0
- ossiq-0.1.0/src/ossiq/cli.py +143 -0
- ossiq-0.1.0/src/ossiq/commands/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/commands/export.py +68 -0
- ossiq-0.1.0/src/ossiq/commands/scan.py +71 -0
- ossiq-0.1.0/src/ossiq/domain/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/domain/common.py +99 -0
- ossiq-0.1.0/src/ossiq/domain/cve.py +40 -0
- ossiq-0.1.0/src/ossiq/domain/exceptions.py +40 -0
- ossiq-0.1.0/src/ossiq/domain/package.py +77 -0
- ossiq-0.1.0/src/ossiq/domain/packages_manager.py +107 -0
- ossiq-0.1.0/src/ossiq/domain/project.py +90 -0
- ossiq-0.1.0/src/ossiq/domain/repository.py +28 -0
- ossiq-0.1.0/src/ossiq/domain/version.py +271 -0
- ossiq-0.1.0/src/ossiq/messages.py +35 -0
- ossiq-0.1.0/src/ossiq/service/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/service/common/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/service/common/package_versions.py +107 -0
- ossiq-0.1.0/src/ossiq/service/project.py +166 -0
- ossiq-0.1.0/src/ossiq/settings.py +39 -0
- ossiq-0.1.0/src/ossiq/timeutil.py +59 -0
- ossiq-0.1.0/src/ossiq/ui/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/ui/html/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/ui/html/filter_format_highlight_days.py +42 -0
- ossiq-0.1.0/src/ossiq/ui/html/tag_versions_difference.py +44 -0
- ossiq-0.1.0/src/ossiq/ui/html/template_environment.py +46 -0
- ossiq-0.1.0/src/ossiq/ui/interfaces.py +59 -0
- ossiq-0.1.0/src/ossiq/ui/registry.py +72 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/__init__.py +1 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/csv.py +469 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/csv_datapackage.py +172 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/csv_schema_registry.py +220 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/json.py +73 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/json_schema_registry.py +70 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/export/models.py +171 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/scan/__init__.py +1 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/scan/console.py +131 -0
- ossiq-0.1.0/src/ossiq/ui/renderers/scan/html.py +65 -0
- ossiq-0.1.0/src/ossiq/ui/system.py +67 -0
- ossiq-0.1.0/src/ossiq/unit_of_work/__init__.py +0 -0
- ossiq-0.1.0/src/ossiq/unit_of_work/core.py +43 -0
- ossiq-0.1.0/src/ossiq/unit_of_work/uow_project.py +83 -0
- ossiq-0.1.0/src/ossiq.egg-info/PKG-INFO +849 -0
- ossiq-0.1.0/src/ossiq.egg-info/SOURCES.txt +96 -0
- ossiq-0.1.0/src/ossiq.egg-info/dependency_links.txt +1 -0
- ossiq-0.1.0/src/ossiq.egg-info/entry_points.txt +2 -0
- ossiq-0.1.0/src/ossiq.egg-info/requires.txt +29 -0
- ossiq-0.1.0/src/ossiq.egg-info/top_level.txt +1 -0
- ossiq-0.1.0/tests/__init__.py +1 -0
- ossiq-0.1.0/tests/adapters/__init__.py +0 -0
- ossiq-0.1.0/tests/adapters/package_managers/__init__.py +0 -0
- ossiq-0.1.0/tests/adapters/package_managers/test_api_npm.py +652 -0
- ossiq-0.1.0/tests/adapters/package_managers/test_api_pip.py +853 -0
- ossiq-0.1.0/tests/adapters/package_managers/test_api_pip_classic.py +437 -0
- ossiq-0.1.0/tests/adapters/package_managers/test_api_uv.py +670 -0
- ossiq-0.1.0/tests/adapters/test_api_github.py +658 -0
- ossiq-0.1.0/tests/adapters/test_api_npm.py +600 -0
- ossiq-0.1.0/tests/adapters/test_api_pypi.py +385 -0
- ossiq-0.1.0/tests/adapters/test_detectors.py +110 -0
- ossiq-0.1.0/tests/domain/__init__.py +0 -0
- ossiq-0.1.0/tests/domain/test_version.py +756 -0
- ossiq-0.1.0/tests/ui/renderers/export/__init__.py +1 -0
- ossiq-0.1.0/tests/ui/renderers/export/test_csv.py +839 -0
- ossiq-0.1.0/tests/ui/renderers/export/test_csv_schema_registry_v1_0.py +381 -0
- ossiq-0.1.0/tests/ui/renderers/export/test_json.py +325 -0
- ossiq-0.1.0/tests/ui/renderers/export/test_json_schema_registry_v1_0.py +174 -0
ossiq-0.1.0/AUTHORS
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This is the list of OSS IQ significant contributors.
|
|
2
|
+
#
|
|
3
|
+
# This does not necessarily list everyone who has contributed code,
|
|
4
|
+
# especially since many employees of one corporation may be contributing.
|
|
5
|
+
# To see the full list of contributors, see the revision history in
|
|
6
|
+
# source control.
|
|
7
|
+
Maksym Klymyshyn
|
|
8
|
+
Oleksandr Shulika
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.
|
|
4
|
+
|
|
5
|
+
You can contribute in many ways:
|
|
6
|
+
|
|
7
|
+
## Types of Contributions
|
|
8
|
+
|
|
9
|
+
### Report Bugs
|
|
10
|
+
|
|
11
|
+
Report bugs at [https://github.com/ossiq/ossiq/issues](https://github.com/ossiq/ossiq/issues).
|
|
12
|
+
|
|
13
|
+
If you are reporting a bug, please include:
|
|
14
|
+
|
|
15
|
+
- Your operating system name and version.
|
|
16
|
+
- Any details about your local setup that might be helpful in troubleshooting.
|
|
17
|
+
- Detailed steps to reproduce the bug.
|
|
18
|
+
|
|
19
|
+
### Fix Bugs
|
|
20
|
+
|
|
21
|
+
Look through the GitHub issues for bugs. Anything tagged with "bug" and "help wanted" is open to whoever wants to implement it.
|
|
22
|
+
|
|
23
|
+
### Implement Features
|
|
24
|
+
|
|
25
|
+
Look through the GitHub issues for features. Anything tagged with "enhancement" and "help wanted" is open to whoever wants to implement it.
|
|
26
|
+
|
|
27
|
+
### Write Documentation
|
|
28
|
+
|
|
29
|
+
Update Burden could always use more documentation, whether as part of the official docs, in docstrings, or even on the web in blog posts, articles, and such.
|
|
30
|
+
|
|
31
|
+
### Submit Feedback
|
|
32
|
+
|
|
33
|
+
The best way to send feedback is to file an issue at [https://github.com/ossiq/ossiq/issues](https://github.com/ossiq/ossiq/issues) .
|
|
34
|
+
|
|
35
|
+
If you are proposing a feature:
|
|
36
|
+
|
|
37
|
+
- Explain in detail how it would work.
|
|
38
|
+
- Keep the scope as narrow as possible, to make it easier to implement.
|
|
39
|
+
- Remember that this is a volunteer-driven project, and that contributions are welcome :)
|
|
40
|
+
|
|
41
|
+
## Get Started!
|
|
42
|
+
|
|
43
|
+
Ready to contribute? Here's how to set up `ossiq-cli` for local development.
|
|
44
|
+
|
|
45
|
+
1. Fork the `ossiq-cli` repo on GitHub.
|
|
46
|
+
2. Clone your fork locally:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
git clone git@github.com:your_name_here/ossiq-cli.git
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
3. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
mkvirtualenv ossiq-cli
|
|
56
|
+
cd ossiq-cli/
|
|
57
|
+
python setup.py develop
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
4. Create a branch for local development:
|
|
61
|
+
|
|
62
|
+
```sh
|
|
63
|
+
git checkout -b name-of-your-bugfix-or-feature
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
Now you can make your changes locally.
|
|
67
|
+
|
|
68
|
+
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox:
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
make lint
|
|
72
|
+
make test
|
|
73
|
+
# Or
|
|
74
|
+
make test-all
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
To get flake8 and tox, just pip install them into your virtualenv.
|
|
78
|
+
|
|
79
|
+
6. Commit your changes and push your branch to GitHub:
|
|
80
|
+
|
|
81
|
+
```sh
|
|
82
|
+
git add .
|
|
83
|
+
git commit -m "Your detailed description of your changes."
|
|
84
|
+
git push origin name-of-your-bugfix-or-feature
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
7. Submit a pull request through the GitHub website.
|
|
88
|
+
|
|
89
|
+
## Pull Request Guidelines
|
|
90
|
+
|
|
91
|
+
Before you submit a pull request, check that it meets these guidelines:
|
|
92
|
+
|
|
93
|
+
1. The pull request should include tests.
|
|
94
|
+
2. If the pull request adds functionality, the docs should be updated. Put your new functionality into a function with a docstring, and add the feature to the list in README.md.
|
|
95
|
+
3. The pull request should work for Python 3.12 and 3.13. Tests run in GitHub Actions on every pull request to the main branch, make sure that the tests pass for all supported Python versions.
|
|
96
|
+
|
|
97
|
+
## Tips
|
|
98
|
+
|
|
99
|
+
To run a subset of tests:
|
|
100
|
+
|
|
101
|
+
```sh
|
|
102
|
+
pytest tests.test_ossiq
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Deploying
|
|
106
|
+
|
|
107
|
+
A reminder for the maintainers on how to deploy. Make sure all your changes are committed (including an entry in HISTORY.md). Then run:
|
|
108
|
+
|
|
109
|
+
```sh
|
|
110
|
+
bump2version patch # possible: major / minor / patch
|
|
111
|
+
git push
|
|
112
|
+
git push --tags
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
You can set up a [GitHub Actions workflow](https://docs.github.com/en/actions/use-cases-and-examples/building-and-testing/building-and-testing-python#publishing-to-pypi) to automatically deploy your package to PyPI when you push a new tag.
|
|
116
|
+
|
|
117
|
+
## Code of Conduct
|
|
118
|
+
|
|
119
|
+
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
|