Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

drpt

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

drpt - npm Package Compare versions

Comparing version
0.5.2
to
0.6.0
+4
-2
PKG-INFO
Metadata-Version: 2.1
Name: drpt
Version: 0.5.2
Version: 0.6.0
Summary: Tool for preparing a dataset for publishing by dropping, renaming, scaling, and obfuscating columns defined in a recipe.

@@ -88,4 +88,6 @@ Author-email: Constantinos Xanthopoulos <conx@xanthopoulos.info>

-l, --limits-file PATH Limits file
-o, --output-dir PATH Output directory. The default output directory is
the same as the location of the recipe_file.
--version Show the version and exit.
--help Show this message and exit
--help Show this message and exit.
```

@@ -92,0 +94,0 @@

@@ -7,3 +7,3 @@ [build-system]

name = "drpt"
version = "0.5.2"
version = "0.6.0"
description = "Tool for preparing a dataset for publishing by dropping, renaming, scaling, and obfuscating columns defined in a recipe."

@@ -40,3 +40,3 @@ readme = "README.md"

[tool.bumpver]
current_version = "0.5.2"
current_version = "0.6.0"
version_pattern = "MAJOR.MINOR.PATCH[PYTAGNUM]"

@@ -43,0 +43,0 @@ commit_message = "Bump version {old_version} -> {new_version}"

@@ -41,4 +41,6 @@ # Data Release Preparation Tool

-l, --limits-file PATH Limits file
-o, --output-dir PATH Output directory. The default output directory is
the same as the location of the recipe_file.
--version Show the version and exit.
--help Show this message and exit
--help Show this message and exit.
```

@@ -45,0 +47,0 @@

Metadata-Version: 2.1
Name: drpt
Version: 0.5.2
Version: 0.6.0
Summary: Tool for preparing a dataset for publishing by dropping, renaming, scaling, and obfuscating columns defined in a recipe.

@@ -88,4 +88,6 @@ Author-email: Constantinos Xanthopoulos <conx@xanthopoulos.info>

-l, --limits-file PATH Limits file
-o, --output-dir PATH Output directory. The default output directory is
the same as the location of the recipe_file.
--version Show the version and exit.
--help Show this message and exit
--help Show this message and exit.
```

@@ -92,0 +94,0 @@

@@ -1,1 +0,1 @@

__version__ = "0.5.2"
__version__ = "0.6.0"

@@ -25,2 +25,8 @@ import traceback

@click.option(
"--output-dir",
"-o",
type=click.Path(exists=False),
help="Output directory. The default output directory is the same as the location of the recipe_file.",
)
@click.option(
"--debug", is_flag=True, help="Enable debug mode showing full trace", hidden=True

@@ -38,2 +44,3 @@ )

nrows,
output_dir,
debug,

@@ -45,4 +52,2 @@ ):

The output directory is the same as the location of the recipe_file.
For more details on the recipe definition, visit this page: https://github.com/ConX/drpt#recipe-definition

@@ -58,2 +63,3 @@ """

nrows,
output_dir,
__version__,

@@ -60,0 +66,0 @@ )

#!/usr/bin/env python3.9
import json
import re
from os import mkdir
from pathlib import Path

@@ -103,2 +104,3 @@

nrows,
output_directory,
tool_version,

@@ -115,3 +117,9 @@ ):

self.output_directory = str(Path(self.recipe_file).parent.absolute()) + "/"
if output_directory is None:
self.output_directory = str(Path(self.recipe_file).parent.absolute()) + "/"
else:
self.output_directory = str(Path(output_directory).absolute()) + "/"
if not Path(self.output_directory).exists():
mkdir(self.output_directory)
self.input_file_stem = Path(self.input_file).stem

@@ -118,0 +126,0 @@ self.input_file_suffix = Path(self.input_file).suffix