Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] Add documentation to the python thrift client example #3652

Merged
merged 1 commit into from
Apr 19, 2022

Conversation

csordasmarton
Copy link
Contributor

No description provided.

@csordasmarton csordasmarton added documentation 📖 Changes to documentation. refactoring 😡 ➡️ 🙂 Refactoring code. labels Apr 14, 2022
@csordasmarton csordasmarton added this to the release 6.20.0 milestone Apr 14, 2022
Comment on lines +23 to +29
wget https://github.com/Ericsson/codechecker/raw/v6.19.1/web/api/py/codechecker_api/dist/codechecker_api.tar.gz && \
pip3 install codechecker_api.tar.gz && \
rm -rf codechecker_api.tar.gz

wget https://github.com/Ericsson/codechecker/raw/v6.19.1/web/api/py/codechecker_api_shared/dist/codechecker_api_shared.tar.gz && \
pip3 install codechecker_api_shared.tar.gz && \
rm -rf codechecker_api_shared.tar.gz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these packages not available from PIP?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, these are available only in the repository as local python packages. This way open source contributors are also able to change the API easily and there is no need extra permissions for pypi and npmjs.

@@ -0,0 +1,41 @@
# Python client for CodeChecker
`client.py` contains simple API requests to a CodeChecker server and it
can be a starting point how you can write your own script.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
can be a starting point how you can write your own script.
can be a starting point for writing your own script.

can be a starting point how you can write your own script.

Before you run this example program you have to do the following steps to
setup and environment:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
setup and environment:
setup an environment:

# It will download API packages for the 'v6.19.1' but you can download newer
# versions as well.
#
# WARNING: make sure that the package versions are not newer than what the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# WARNING: make sure that the package versions are not newer than what the
# WARNING: make sure that the package versions are not newer than what

@csordasmarton csordasmarton force-pushed the thrift_client_example branch from 12588e0 to 0088525 Compare April 19, 2022 12:10
@csordasmarton csordasmarton requested a review from vodorok as a code owner April 19, 2022 12:10
@csordasmarton csordasmarton requested a review from bruntib April 19, 2022 12:11
@bruntib bruntib merged commit 7e5dfc8 into Ericsson:master Apr 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation 📖 Changes to documentation. refactoring 😡 ➡️ 🙂 Refactoring code.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants