In the chartfactor-py folder execute the following build command: python3 -m buildĪfter execution, 2 files should have been generated in the dist folder: For more information go to the pyc-wheel page This package allows you to compile all py files in a wheel to pyc files. -p upload package to the production environment.-t upload package to the test environment.The build-pyarmored-wheel.sh file was created to automatically build, obfuscate and deploy the package to the server.Īfter installing Anaconda successfully and created the virtual environments, execute the following command inside the chartfactor-py folder: sh build-pyarmored-wheel.sh -v 1.x Next, open the software, go to the Environments tab, and create two virtual environment for python 3.6 and 3.7 with the following names:Įxecuting the build-pyarmored-wheel.sh file In order to create easily the virtual environments with the different python versions, and also obfuscate the codeĪnd be able to run the chartfactor-py package in every python version, it's necessary to install the Anaconda software.įirst download it from the official website. Using pyarmor package to build a pyarmored wheel (Recommended) Installing Anaconda Two processes to achieve code obfuscation and its corresponding deployment are detailed below. The code obfuscation allows to modify a program code so that it is no longer useful to a hacker but remains fully functional. read_csv ( './csvs/ticket_sales.csv' ) Cell 3 jsonConfig = Go to the Jupyter Notebook and in a new python notebook do the following Cell 1 from chartfactor import cf import pandas as pd Cell 2 ts = pd. Install the package locally python -m pip install. The previous command will create a dist folder with tha package in the chartfactor-1.0.tar.gz file. ChartFactor for Python How to install and testĪfter download the project go to the root directory Uninstall any previous installation python -m pip uninstall chartfactor -yesīuild the chartfactor package like this python setup.py sdist
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |