https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-python-service
- Prepare project and dockerfile
- Prepare requirements.txt
| ### DİKKAT! | |
| ### İlgili bot sadece Robokami'nin işleyişini gösterim amaçlıdır. | |
| ### Robokami ve Tideseed botun çalışması ve işlevi dahil hiçbir konuda bir garanti vermemektedir ve herhangi bir sorumluluk kabul etmemektedir. | |
| ### İlgili kodun lisansı Apache License 2.0 lisansına uygundur. | |
| ### Detaylı bilgi ve sorular için https://robokami.com adresine başvurabilirsiniz. | |
| from robokami.main import RKClient | |
| import json | |
| import copy | |
| ## Birinci hesabın bilgileri |
| { | |
| "id": "1688375491.446317", | |
| "event": "le", | |
| "data": { | |
| "c": "PH23070315", | |
| "bid_bp": 2120.12, | |
| "ask_bp": 2249.88, | |
| "bid_bq": 163, | |
| "ask_bq": 4, | |
| "p_min": 1987.11, |
| --- | |
| title: "Yabancı Öğrenci Raporu (Örnek)" | |
| author: "MEF MGMT 553 2022-2023 Bahar Dönemi" | |
| format: pptx | |
| editor: visual | |
| execute: | |
| echo: false | |
| message: false | |
| warning: false | |
| --- |
https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-python-service
pip install --editable /path/to/package
You need to include a minimal setup.py
from setuptools import setup, find_packages
setup(| ### This gist gives you the code snippet to reach upper directories | |
| ### so you can reach other functions in the document | |
| ### e.g. from mainfolder.subfolder.subfolder.examplefile import example_function | |
| #### Include upper dirs start | |
| dpath = os.path.dirname(os.path.abspath(__file__)) | |
| for i in range(4): | |
| dpath = os.path.dirname(dpath) | |
| sys.path.insert(1, dpath) | |
| #### Include upper dirs end |
| ####### | |
| ### This is a minimal example of using HiGHS solver in R with the help of ROI and ompr packages. | |
| ####### | |
| ## SETUP BEGIN | |
| pti <- c("ompr.roi","ompr","highs","devtools") | |
| pti <- pti[!(pti %in% installed.packages())] | |
| if(length(pti) > 0){ | |
| install.packages(pti) | |
| } |
| import pandas as pd | |
| def pd_reorder_cols(df, d): | |
| """ | |
| Reorders the position of columns with the given specs dictionary. | |
| """ | |
| cl = list(df.columns) | |
| for k1, v1 in d.items(): | |
| k1_ix = cl.index(k1) | |
| cl.pop(k1_ix) |
| --- | |
| output: | |
| html_fragment: | |
| self_contained: false | |
| always_allow_html: true | |
| --- | |
| ```{=html} | |
| <!DOCTYPE html> | |
| ``` |
| from datatable import fread | |
| import pandas as pd | |
| excel_path = "my_excel_file.xlsx" | |
| df = fread(excel_path+"/sheet_name").to_pandas() |