Giter VIP home page Giter VIP logo

epias-data's Introduction

Run API Server

$ uvicorn api:app --host 0.0.0.0 --port 8000 --reload

API Documentation

$ http://127.0.0.1:8000/docs

Create Service

Add the epas.service file to the linux service files

if you are start manually the service, you can use the following command:

$ sudo systemctl start epas.service

other starter commands:

$ python3 -m main.py

## NOTE 

Apache airflow kullanılarak oluşturulmuş bir dag ile veri çekilip veritabanına kaydedilebilirdi ancak apache airflow kurulumu ve kullanımı için fazla zaman harcanacağından dolayı bu yöntem tercih edilmedi.

istenirse dag file şuna benzer:

```python

from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.bash_operator import BashOperator
from datetime import datetime, timedelta
import requests

default_args = {
    'owner': 'airflow',
    'depends_on_past': False,
    'start_date': datetime(2022, 4, 22),
    'email': ['example.com'],
    'email_on_failure': False,
    'email_on_retry': False,
    'retries': 1,
    }

dag = DAG(
    'epas',
    default_args=default_args,
    description='EPAS DAG',
    schedule_interval=timedelta(days=1),
    )

def get_data():
    requests.get('http://localhost:8000/market/mcp')

epias-data's People

Contributors

burakugurr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.