I would like to use Hy , a Lisp dialect on top of Python. However, my colleagues use Python and are unlikely to switch to the Lisp dialect in the near future.
How can I pack Hy code in a standard Python module?
You have three main options.
Import your employees as dg123 wrote.
use the python package and import yourself into your __init __.py files. Then your colleagues can simply import your modules.
compile your module with hyc and deploy a .pyc file that your colleagues can import as a regular python module.
Simple! , pip install hy, .hy Python:
pip install hy
.hy
1) hy:
hy
import hy
2) , Python .py:
.py
import module_name
( module_name module_name.hy , Python)
module_name
module_name.hy
Source: https://habr.com/ru/post/1538232/More articles:How to create temporary files. # Filename` in `/ tmp`, not in the working directory - emacsHow to create a โloading screenโ for a first spa visit SPA session - angularjsIn python legend matplotlib shows the first entry of a list only - pythondust.js - render the first element of an array - jsonmultiple-value-bind cancel the first value - common-lispHow to set filter for DateSent for getMessages in Java using Twilio REST API - javaCompress directory in zipfile using Commons IO - javaCould not find libtoolize command in cygwin - cygwinFirefox SDK for easy storage and synchronization with Firefox - firefox-addonHow can I effectively "Max Out" to execute concurrent HTTP requests? - httpAll Articles