Gensim and Textblob Example
Generated from compiling a refinery.io project.
Deploy
In order to deploy this project, you must go to the project page on refinery.io:
- Login to your account on https://app.refinery.io
- Open project configured to use this repository
- Click "Deploy Project"
Documentation
For understanding how Code Blocks and other types of blocks and transitions work, check out the docs.
Folder Layout
refinery/
lambda/
...
projects/
...
shared-files/
...
Code Blocks
lambda
contains all Code Blocks which are used by the project. Each folder contains the following files:
shared_files/
...
block_code.[ext]
config.yaml
input_config.yaml
[dependencies file]
run_code.[ext]
run_code.sh
shared-files
holds symbolic links to files located in theshared-files
folder in the rootrefinery
folder.block_code.[ext]
contains the code which will be run in this Code Block.config.yaml
configuration for the Code Block.input_config.yaml
configuration for the Code Block's input when testing the block locally.[dependencies file]
this is a generated file specifically for the Code Block's language and includes any configured libraries required by the Code Block (ex. if the language is nodejs, this file will be namedpackage.json
and the block's dependencies can be installed with runningnpm install
).run_code.[ext]
contains bootstrap code required in order to mimic how the block will behave when deployed.run_code.sh
can be used to run the Code Block locally once the local development environment has been set up.
Projects
projects
holds the project configuration, named by its identifier. You may change the contents of this file and it will be reflected in the project.
NOTE: Currently you can only store one project in a git repository. Multiple projects per git repository will be supported soon.
Shared Files
shared-files
contains all shared files used by Code Blocks.
Running Code Blocks Locally
All Code Blocks associated with the project are located in lambda
folder and can be run locally.
To run a Code Block locally, make sure you have your development environment setup to run the Code Block's language (ex. if the block you want to run is written in the Python
language, the python
executable must runnable from your terminal.)
All of the Code Block's libraries must also be installed, you can install these from the included .
Once your development environment is setup, to run the Code Block code, run sh run_code.sh
.
To modify input
or backpack
data which is being passed into the Code Block, modify the YAML configuration for the block in block_config.yaml
.