Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socketโs threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Eugene Investment & Securities Champion Open Api Python Wrapper
Free software: MIT
pyEugene is an unofficial python wrapper for easy use of the Champion Open API provided by Eugene Investment & Securities.
Even if you are not familiar with the functions below, you can use all of them.
dynamicCall
function for function invocation in con>์๋์ ๊ธฐ๋ฅ๋ค์ ์ ๋ชจ๋ฅด๋๋ผ๋ ์ถฉ๋ถํ ๋ชจ๋ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
dynamicCall
ํจ์ ์ฌ์ฉTo begin using pyEugene
, start by installing anaconda(or you can use miniconda):
Download anaconda
Download miniconda
When you're done installing the anaconda, run the anaconda prompt and set it to a 32-bit development environment
set CONDA_FORCE_32BIT=1
If you replace the anaconda with 32-bit, create a 32-bit virtual environment (You should use Python 3.9 version)
conda create --name py39_32 python=3.9
When you're done installing, activate virtual environment and use the pip to install pyEugene
conda activate py39_32
pip install pyeugene
Once you've installed pyEugene
, you can start using it right away.
For example, to get real-time stock price using pyEugene
, enter the following code:
import sys
import os
from pprint import pprint
from dotenv import load_dotenv
from pyeugene.eugene_manager import EugeneManager
if __name__ == "__main__":
load_dotenv()
em = EugeneManager(os.getenv("USER_ID"), os.getenv("USER_PW"), os.getenv("CERT_PW"))
real_cmd = {
'realId': '21',
'realKey': '005930',
'output': ["SCODE", "SNAME", "CMARKETGUBUN", "LTIME", "CPCHECK", "LDIFF", "LCPRICE"]
}
em.put_real(real_cmd)
for i in range(10):
data = em.get_real()
pprint(data)
sys.exit()
pyEugene
์ ์ฌ์ฉํ๊ธฐ ์ํด์๋ ์๋์ฝ๋ค๋ฅผ ์ค์นํด์ผ ํฉ๋๋ค(๋ฏธ๋์ฝ๋ค๋ฅผ ์ค์นํด ์ฌ์ฉํ ์๋ ์์ต๋๋ค)
์๋์ฝ๋ค ๋ค์ด๋ก๋
๋ฏธ๋์ฝ๋ค ๋ค์ด๋ก๋
์๋์ฝ๋ค ๋ค์ด๋ก๋๊ฐ ์๋ฃ ๋์์ผ๋ฉด ์๋์ฝ๋ค ํ๋กฌํํธ๋ฅผ ์คํํด 32bit ๊ฐ๋ฐํ๊ฒฝ์ผ๋ก ์ค์ ํด์ค์ผ ํฉ๋๋ค
set CONDA_FORCE_32BIT=1
32bit๋ก ์ค์ ์ด ์๋ฃ ๋์์ผ๋ฉด 32bit ๊ฐ์ ๊ฐ๋ฐ ํ๊ฒฝ์ ๋ง๋ค์ด์ค๋๋ค (ํ์ด์ฌ 3.9 ๋ฒ์ ์ ์ฌ์ฉํด์ผ ํฉ๋๋ค)
conda create --name py39_32 python=3.9
์ค์น๊ฐ ๋ชจ๋ ๋๋๋ฉด ๊ฐ์ํ๊ฒฝ์ ์คํํ๊ณ pip๋ฅผ ํตํด pyEugene
์ ์ค์นํด์ค๋๋ค
conda activate py39_32
pip install pyeugene
๋ค์๋ถํฐ๋ pyEugene
์ ์ค์นํ์ง ์๊ณ ๋ ๊ธฐ๋ฅ์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
๊ฐ๋จํ ์์๋ก pyEugene
์ ์ด์ฉํด ์ค์๊ฐ ์์ธ๋ฅผ ๋ฐ์์ค๋ ค๋ฉด ์๋ ์ฝ๋๋ฅผ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค
import sys
import os
from pprint import pprint
from dotenv import load_dotenv
from pyeugene.eugene_manager import EugeneManager
if __name__ == "__main__":
load_dotenv()
em = EugeneManager(os.getenv("USER_ID"), os.getenv("USER_PW"), os.getenv("CERT_PW"))
real_cmd = {
'realId': '21',
'realKey': '005930',
'output': ["SCODE", "SNAME", "CMARKETGUBUN", "LTIME", "CPCHECK", "LDIFF", "LCPRICE"]
}
em.put_real(real_cmd)
for i in range(10):
data = em.get_real()
pprint(data)
sys.exit()
Feel free to contribute to pyEugene
fixing bugs.
FAQs
Eugene Investment & Securities Champion Open Api Python Wrapper
We found that pyeugene demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.ย It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socketโs threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.