
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
@allcapsdev/cvcsv-cli
Advanced tools
This is a tool to make the process of creating the bulk import CSV file for Google Clouds Vision Product Search API a little easier.
Here is the documentation for the formatting the CSV.
Node
The data should be organised as follows:
.
├── kitkat
│ └── chunky
│ ├── peanut_butter
│ │ ├── 01.jpg
│ │ ├── 02.jpg
│ ├── plain
│ │ ├── 01.jpg
│ │ ├── 02.jpg
│ ├── salted_caramel
│ │ ├── 01.jpg
│ │ ├── 02.jpg
│ │ ├── 03.jpg
│ └── white
│ └── 01.png
npm i -g @allcapsdev/cvcsv-cli
Note: The package is published to Github Package Registry follow these instructions in order to be able to install this package and others from there. (It is also available via NPMJS)
Then once the package has been installed:
cvcsv
The CLI will then ask a few questions relating to the data, i.e. where it is, the GCP bucket name, etc.
The output file will be created in the directory that you provide as the source of the images you wish to add to the csv.
The CLI will read a config file from within the directory that it is executed.
The file should be named .cvcsvrc
and the structure is as follows:
{
"bucketName": "the-name-of-the-gs-bucket-the-sample-images-are-stored",
"category": false,
"csvFileLocation": "where-you-would-like-to-save-the-csv-file",
"csvFilename": "the-name-of-the-file.csv",
"productCategory": "any-of-the-product-categories-GCP-CV-has",
"productSet": "the-name-of-your-product-set",
"rootDirectory": "the-root-directory-of-your-images"
}
You can complete the whole file or you can miss any of the fields out, the CLI will ask you for any that are missing.
category
can be false
or a number. The number relates to the directories below the root directory. Using the example above kitkat
would be 0
, chunky
= 1
, etc.
If no file is there then you will get the full set of questions.
FAQs
CLI for creating CSV for Cloud Vision Product Search API
The npm package @allcapsdev/cvcsv-cli receives a total of 228 weekly downloads. As such, @allcapsdev/cvcsv-cli popularity was classified as not popular.
We found that @allcapsdev/cvcsv-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Security News
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.