
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
RDEToolKit is a fundamental Python package for creating workflows of RDE-structured programs. By utilizing various modules provided by RDEToolKit, you can easily build processes for registering research and experimental data into RDE. Additionally, by combining RDEToolKit with Python modules used in your research or experiments, you can achieve a wide range of tasks, from data registration to processing and visualization.
See the documentation for more details.
If you wish to make changes, please read the following document first:
To install, run the following command:
pip install rdetoolkit
Below is an example of building an RDE-structured program.
First, prepare the necessary files for the RDE-structured program. Run the following command in your terminal or shell:
python3 -m rdetoolkit init
If the command runs successfully, the following files and directories will be generated.
In this example, development proceeds within a directory named container
.
pip install
as needed.container
├── data
│ ├── inputdata
│ ├── invoice
│ │ └── invoice.json
│ └── tasksupport
│ ├── invoice.schema.json
│ └── metadata-def.json
├── main.py
├── modules
└── requirements.txt
You can process input data (e.g., data transformation, visualization, creation of CSV files for machine learning) and register the results into RDE. By following the format below, you can incorporate your own processing into the RDE structured workflow.
The dataset()
function should accept the following two arguments:
def dataset(srcpaths: RdeInputDirPaths, resource_paths: RdeOutputResourcePath):
...
In this example, we define a dummy function display_messsage()
under modules
to demonstrate how to implement custom structured processing. Create a file named modules/modules.py
as follows:
# modules/modules.py
def display_messsage(path_list):
print(f"Test Message!: {path_list}")
def dataset(srcpaths, resource_paths):
display_messsage(srcpaths)
display_messsage(resource_paths)
Next, use rdetoolkit.workflow.run()
to define the entry point. The main tasks performed in the entry point are:
import rdetoolkit
from modules.modules import dataset # User-defined structured processing function
# Pass the user-defined structured processing function as an argument
rdetoolkit.workflows.run(custom_dataset_function=dataset)
If you do not wish to pass a custom structured processing function, define as follows:
import rdetoolkit
rdetoolkit.workflows.run()
To debug or test the RDE structured process in your local environment, simply add the necessary input data to the data
directory. As long as the data
directory is placed at the same level as main.py
, it will work as shown below:
container/
├── main.py
├── requirements.txt
├── modules/
│ └── modules.py
└── data/
├── inputdata/
│ └── <experimental data to process>
├── invoice/
│ └── invoice.json
└── tasksupport/
├── metadata-def.json
└── invoice.schema.json
FAQs
A module that supports the workflow of the RDE dataset construction program
We found that rdetoolkit 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.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.