
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
This package includes methods for:
Running a specified query, passed in as a string, on an Oracle database and returning the result to a Pandas data frame.
Executing a command with no return data.
Inserting the contents of a Pandas data frame into an Oracle database table.
::
pip install pandas_oracle
Sample usage::
import pandas_oracle.tools as pt
query1 = "select id, name from students where name like '%Oscar%'"
query2 = "select class, avg(age) from students group by class"
## opening conn
conn = pt.open_connection("config.yml")
## passing the conn object to the query_to_df
df1 = pt.query_to_df(query, conn, 10000)
## passing the conn object to the query_to_df , without to open again
df2 = pt.query_to_df(query2, conn, 10)
## close connection
pt.close_connection(conn)
Returns::
ID NAME
0 3298272 Meyer,Oscar
1 2304928 Wilde,Oscar
2 7654321 Grouch,Oscar
. ... ...
128 2234879 De La Hoya,Oscar
129 9872322 Peterson,Oscar
130 9082394 Sanchez,Oscar
[131 rows x 2 columns]
Sample config file::
database:
username: "OGROUCH"
password: "SECR3TPASSWORD"
sysdba: "n"
host: >
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)
(HOST = servername.myschool.edu)
(PORT = 1521)
)
(CONNECT_DATA = (SERVER = DEDICATED)
(SID = dbname)
)
)
If you don't wish to store your password in the configuration file, you can omit that line. If a password isn't present in the configuration file, you will be prompted for it at runtime.
You can choose whether or not to connect with the SYSDBA role. If the yaml file doesn't include the "sysdba" property, it will connect like a normal user.
As of version 2.1.0, the _cc methods have been added (query_to_df_cc, execute_cc, and insert_multiple_cc). These methods get passed a config file rather than a connection object and take care of opening and closing the connection for you.
FAQs
Tools for working with an Oracle database from Pandas
We found that pandas-oracle 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
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.