Suspicious 80% python Download

numerblox 1.6.1

Legitimate ML pipeline library

Calls glob for filename searchPython JSON parsing or serialization reference

Evidence

Declares Markdown package description METADATA · lines 1–14
1Metadata-Version: 2.4
2Name: numerblox
3Version: 1.6.1
4Summary: Solid Numerai Pipelines
5Author-email: CrowdCent <[email protected]>
6License: MIT License
7Requires-Python: <4,>=3.10
8Description-Content-Type: text/markdown
9License-File: LICENSE
10Requires-Dist: tqdm>=4.66.1
11Requires-Dist: numpy>=1.26.3
12Requires-Dist: scipy>=1.10.0
13Requires-Dist: pandas>=2.1.1
14Requires-Dist: pandas-ta-classic>=0.3.14 …
Package metadata references Shields badge URLs METADATA · lines 37–41
37:16… ruff>=0.3.0; extra == "test"
38Dynamic: license-file
39
40![](https://img.shields.io/pypi/v/numerblox.png)
41![Python Version](https://img.shields.io/badge/dynamic/toml?url=https://raw.githubusercontent.com/crowdce …
imports glob download.py · lines 1–29
1import concurrent
2import glob
3import json
4import os
5import shutil
6import time
7from abc import ABC, abstractmethod
8from concurrent.futures import ThreadPoolExecutor
9from datetime import datetime as dt
10from pathlib import Path
11
12import pandas as pd
13from dateutil.relativedelta import relativedelta
14from google.cloud import storage
15from numerapi import CryptoAPI, NumerAPI, SignalsAPI
16from tqdm.auto import tqdm
17
18from .numerframe import NumerFrame
19
20
21class BaseIO(ABC):
22 """
23 Basic functionality for IO (downloading and uploading).
24
25 :param directory_path: Base folder for IO. Will be created if it does not exist.
⋯4 lines
Calls rmtree() to delete a directory tree download.py · lines 32–40
32:17… ase_directory(self):
33 """Remove directory with all contents."""
34 abs_path = self.dir.resolve()
35 print(f"WARNING: Deleting directory for '{self.__class__.__name__}'\nPath: '{abs_path}'")
36 shutil.rmtree(abs_path)
37
38 def download_file_from_gcs(self, bucket_name: str, gcs_path: str):
39 """
40 Get file from GCS bucket …
Python os.path.isfile path test download.py · lines 63–69
63:40… t_name=bucket_name, blob_path=blob_path)
64 for gcs_file in glob.glob(gcs_path + "/**", recursive=True):
65 if os.path.isfile(gcs_file):
66 blob.download_to_filename(blob_path)
67 print(f"Directory '{gcs_path}' from bucket '{blob.bucket.id}' downloaded to '{blob_path}'")
68
69 def upload_directory_to_gcs(self, bucke …

Showing the top 5 files — 5 more files (45 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.