{"id":25455268,"url":"https://github.com/nickchecan/hana-to-python","last_synced_at":"2025-11-02T09:30:34.732Z","repository":{"id":106062602,"uuid":"125300916","full_name":"NickChecan/hana-to-python","owner":"NickChecan","description":"A common Python Flask application with access to a Hana trial instance provided by SAP","archived":false,"fork":false,"pushed_at":"2024-09-12T02:57:10.000Z","size":9,"stargazers_count":14,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-18T00:57:03.442Z","etag":null,"topics":["hana","hana-trial-instance","python","python-flask","python-flask-application","python-flask-server","python-flask-template","python-flask-web","python-flask-webpage","python-venv","python-virtual-environment","sap","sap-cloud-platform","sap-hana"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NickChecan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-03-15T02:22:30.000Z","updated_at":"2025-01-14T03:58:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"e0fa3994-10cc-404e-9dea-5d65655f23dd","html_url":"https://github.com/NickChecan/hana-to-python","commit_stats":null,"previous_names":["nickchecan/hana-to-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickChecan%2Fhana-to-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickChecan%2Fhana-to-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickChecan%2Fhana-to-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NickChecan%2Fhana-to-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NickChecan","download_url":"https://codeload.github.com/NickChecan/hana-to-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239389542,"owners_count":19630310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hana","hana-trial-instance","python","python-flask","python-flask-application","python-flask-server","python-flask-template","python-flask-web","python-flask-webpage","python-venv","python-virtual-environment","sap","sap-cloud-platform","sap-hana"],"created_at":"2025-02-18T00:57:05.128Z","updated_at":"2025-11-02T09:30:34.677Z","avatar_url":"https://github.com/NickChecan.png","language":"Python","readme":"\nHana to Python Application\n===================\n\nThe purpose of this project is to implement a simple Python application to demonstrate the integration between a common third party application to a SAP Hana database.\n\n\u003e **Note:**\n\u003e \n\u003e - This project is directly linked to  the project at the [HanaService](https://github.com/NickChecan/HanaService) repository.\n\u003e - Project developed with Python 3.7.\n\n\n----------\n\nProject Components\n-------------\n\nThis project uses the [Flask](http://flask.pocoo.org/) framework to serve data through a simple web site platform locally. \n\n```\nHanaToPython-Application\n\t├── app\n\t│    ├── modules\n\t│    │    ├── Controller.py\n\t│    │    ├── Model.py\n\t│    │    └── __init__.py\n\t│    ├── templates\n\t│    │    └── index.html\n\t│    └── __init__.py\n\t├── config.py\n\t├── requirements.txt\n\t└── run.py\n```\n\nThe routes used in this application can be found at **./app/modules/Controller.py**.\n\nThe **.app/modules/Model.py** file will be responsible to access the Hana data through a database connection established by the information provided at the **config.py** file.\n\nThe template folder will handle all views available for the application.\n\nThe file **requirements.txt** contains all the plugins used for the current application and the **run.py** file will be responsible for the application execution.\n\n\n----------\n\nGetting Started\n-------------\n\nBefore importing this project to your Python workspace, it is necessary to make sure the prerequisites steps are properly done in your development environment.\nThe installation procedure described in this documentation will assume you've already have Python installed at your computer.\n\n#### \u003ci class=\"icon-layers\"\u003e\u003c/i\u003e Prerequisites\n\n - Hana Service \u003c/br\u003e\n To execute this application it will be necessary to properly deploy the [Hana Service](https://github.com/NickChecan/HanaService) project into your Hana Trial environment.\n\n - A Python Editor of your choice \u003c/br\u003e\n For this project the [PyCharm](https://www.jetbrains.com/pycharm/) IDE and [Visual Studio Code](https://code.visualstudio.com/) were used for development, but the same is not required to correctly deploy the application it self.\n\n - Install the virtual environment package \u003c/br\u003e\n **Virtual Environment** (virtualenv) is a tool to create isolated Python environments. The *virtualenv* command creates a folder which contains all the necessary executables to use the packages that a Python project would need. The same can be installed as described in [this link](http://docs.python-guide.org/en/latest/dev/virtualenvs/) through the following command:\n\n```\n$ pip install virtualenv\n```\n\n\n#### \u003ci class=\"icon-download\"\u003e\u003c/i\u003e Installing\n\nThe steps bellow will guide you through the project installation.  \u003c/br\u003e\nThe following commands should be executed in your computer console at the project folder:\n\n* Clone the project to your local repository workspace;\n\n* Create a virtual environment for the imported application through the following command:\n```\n$ virtualenv \u003cVirtual Environment name\u003e\n```\n* Activate your virtual environment with the command:\n```\n$ \u003cVirtual Environment name\u003e\\Scripts\\activate\n```\n * With the virtual environment properly activated, install the plugins available at the **requirements.txt** file through the command:\n```\n$ pip install -r requirements.txt\n```\nThis process should enable your application to be deployed in a local server for test purpose.\n\n\n\u003e **Note:**\n\u003e \n\u003e - With the [Hana Service](https://github.com/NickChecan/HanaService) properly deployed, the **config.py** file should be modified to attend the address of your Hana Trial Instance.\n\n\n----------\n\nDeployment\n-------------\n\nWith the Hana Service properly deployed, the **config.py** file modified to attend your Hana Trial Instance and the virtual environment activated, the python application should run through the following command:\n\n```\n$ python run.py\n```\n\nThe same will enable the project to be accessed by you web browser trough a URL displayed by the mentioned command execution.\n\n\u003e **Tips:**\n\u003e \n\u003e - As mentioned in the Hana Service project repository, always remember to make sure the Hana Trial Instance is up and running through the Cloud Platform Cockpit before execute commands or test any application directly linked to the Hana Service.\n\n\n\nAcknowledgments\n-------------\nThis project was made possible thanks to the Flask framework tutorials available at the [Tutorials Point](https://www.tutorialspoint.com/flask/) and at [Bruno Rocha](http://brunorocha.org/) personal blog. These two web sites was incredibly helpful in the development and preparation step of this project.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickchecan%2Fhana-to-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnickchecan%2Fhana-to-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnickchecan%2Fhana-to-python/lists"}