GraphQL Python Labs - by Gabs the CSE
Table of Contents
About The Project
The main goal of this project is to mantain a trustful source of Python GraphQL queries, to help Harness Customers.
Getting Started
Prerequisites
-
A Harness account, of course!
-
For MacOs Users, please double-check the SSL CERT
cd /Applications/Python\ 3.9/ # PUT YOUR PYTHON VERSION ./Install\ Certificates.command
Installation and Usage
-
Clone the repo
git clone https://github.com/gabrielcerioni/harness_instanceStats_gql_to_csv.git cd harness_instanceStats_gql_to_csv
-
Install the project dependecies (very simple stuff, meant to deal with requests, json, html)
pip install -r requirements.txt <OR> python3 -m pip install -r requirements.txt
-
Export the required variables (Just to avoid Secrets, KMS, Vaults, etc, to keep this project simple)
export HARNESS_GRAPHQL_ENDPOINT=https://app.harness.io/gateway/api/graphql?accountId=<your_acc> export HARNESS_GRAPHQL_API_KEY=<YOUR_API_KEY> export HARNESS_GQL_CSV_NAME=<full_csv_path>
-
Enjoy ;)
python3 main.py <...>
Roadmap
See the open issues for a list of proposed features (and known issues).
Contributing
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Distributed under the MIT License. See LICENSE
for more information.
Contact
Gabriel Cerioni - @gabs.tar.gz - [email protected]
Project Link: https://github.com/gabrielcerioni/harness_instanceStats_gql_to_csv/