Installation & Setup
Note: credmark-models-py is publically available, so anyone can see it, fork it, and contribute to it.
- 2.Fork the repository by clicking on Fork
You will be directed to Create a new Fork page
Give a name to your Repository and click on Create Fork.
git clone https://github.com/<owner>/credmark-models-py.git
Setting up a virtual environment for your work isn't required but we highly recommend it. Following are instructions for both Conda and venv. Use the one you prefer.
- Install Conda.
- Create an environment named "cmf" with the system's default using the system's default version of Python:
conda create -y --name "cmf"
- create it specifying a particular version of Python:
conda create -y --name "cmk" python="3.10"*
- Install pip and other support packages in the Conda environment:
conda install -y --name cmk ipython jupyterlab nb_conda_kernels jupyterlab_code_formatter ipywidgetsNow, the credmarksdk has all the packages and programs that are required to create the correct Model according to the Credmark set of rules, so it is important that you call the credmarksdk before starting working on your Model.
- Activate the environment and follow the CMK installation instructions below:
conda activate cmk
The best place to create your venv environment is in the project directory you cloned.
Assuming your cwd is the one above the repository you've just cloned, create and activate your virtual environment:
python3 -m venv venv
pip install -r requirements.txt
For development, you should also run:
pip install -r requirements-dev.txt
credmark-dev run chain.get-latest-block -j
Your output should look something like:
2022-10-14 22:49:32,092 - credmark.cmf.engine.context - INFO - Using latest block number 15746805