Code Monkey home page Code Monkey logo

cymod's Introduction

CyMOD

A Python Module to generate Compiled Binaries using cython for sharing confidential codes with customers and clients

Getting Started

Prerequisites

Few things required along with the libraries required to compile your codes

cython, python = 2.x,3.x, *corresponding C++ comipler support (Visual Studion 20YZ in windows)

Running the code

1.Fork the code into your local directory
2.Decide which python version you want to use and check if corresponding support of c++ compiler is with you or not

In case of Windows, Following support is needed for different python versions:

  1. Python 2.6 to 3.2 Check Link1 Link2
  2. Python 3.3, 3.4 Check Link3
  3. Python 3.5 and Later Check Link4

While installing, Keep in mind to select this:

  1. Make a Copy of your folder which you want to convert into compiled binary

  2. Pass the path of your copied project like this:

python cyMOD.py <path_of_package>

Examples

Download samp_proj folder, and you can use it for a sample run

1. python cyMOD.py C:\Users\BIG1KOR\Desktop\samp_proj
2. python cyMOD.py C:\Users\BIG1KOR\Desktop\samp_proj -K=True
3. python cyMOD.py C:\Users\BIG1KOR\Desktop\samp_proj -K=True -A=__init__.py,main.py

For help type

python cyMOD.py -h

Pros/Cons

Pros:
  1. Safe and Secure way to share code
  2. Works slightly faster than normal .py file as compilation time is saved
  3. Can be used in Win/Linux
Cons:
  1. Generated binaries are system and python version specific

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.