This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any | |
import httpx | |
from mcp.server.fastmcp import FastMCP | |
from eptr2.main import eptr_w_tgt_wrapper, EPTR2 | |
import pandas as pd | |
# Initialize FastMCP server | |
mcp = FastMCP("eptr2") | |
eptr = eptr_w_tgt_wrapper() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from eptr2.util.costs import calculate_diff_cost | |
res = calculate_diff_cost( | |
actual=50, forecast=100, mcp=1000.0, smp=2500.0, prod_source="solar" | |
) | |
## print(res) | |
# { | |
# "imbalances": { | |
# "diff": -50, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidyverse) | |
library(reticulate) | |
if(FALSE){ | |
print("Installing python packages") | |
reticulate::py_install("eptr2") | |
reticulate::py_install("pandas") | |
reticulate::py_install("urllib3") | |
} | |
eptr2 <- reticulate::import("eptr2") | |
eptr_obj <- eptr2$EPTR2() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## GİP Hacim Karşılaştırma | |
from eptr2 import EPTR2 | |
import re | |
import pandas as pd | |
eptr = EPTR2() | |
idm_qty_24 = eptr.call("idm-qty", start_date="2024-01-01", end_date="2024-01-03") | |
idm_qty_23 = eptr.call("idm-qty", start_date="2023-01-01", end_date="2023-01-03") | |
idm_vol_24 = eptr.call("idm-volume", start_date="2024-01-01", end_date="2024-01-03") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// Use IntelliSense to learn about possible attributes. | |
// Hover to view descriptions of existing attributes. | |
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"name": "Streamlit: App", | |
"type": "python", | |
"request": "launch", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.10-slim | |
ENV APP_HOME /app | |
WORKDIR $APP_HOME | |
# Allow statements and log messages to immediately appear in the Knative logs | |
ENV PYTHONUNBUFFERED True | |
ENV PORT 8080 | |
RUN pip install --no-cache-dir --upgrade shiny |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from jose import jwt | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from cryptography.hazmat.primitives import serialization | |
#https://dev.to/aaronktberry/generating-encrypted-key-pairs-in-python-69b | |
private_key = rsa.generate_private_key( | |
public_exponent=65537, | |
key_size=2048 | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
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 | |
--- |
NewerOlder