An ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies. It is ready to use out of the box without any configuration required and easy to extend with C. Similar project: MicroPython, JerryScript.
MIT License
Bot releases are visible (Hide)
Published by pikasTech 2 months ago
We are excited to announce the release of PikaPython v1.13.4! This version comes with numerous community contributions, bug fixesπ, and new featuresπ. Here are the key updates:
exception_stack
for threads and replaced try_error_code
with error_stack
, improving error handling and thread stability.vmFrame
and addressed issues with isinstance
to ensure robust memory management and error handling.json
, time
, flashdb
, and modbus_rt
to improve functionality and performance.pika_debug_raw
and improved debugging capabilities for smoother development workflows.pika_littlefs
functions and provided new support for flashdb
files and tsdb_init
..py.o
file sending issue and added support for TCP terminal connections.VMError
.json
and modbus_rt
.pika_littlefs
and added robust error checking mechanisms.package | state | version |
---|---|---|
pikascript-core | Update | v1.13.3 --> v1.13.4 |
PikaStdLib | Update | v1.13.3 --> v1.13.4 |
PikaStdDevice | Update | v2.4.5 --> v2.4.6 |
PikaCV | Update | v0.1.5 --> v0.1.6 |
random | Update | v0.1.3 --> v0.1.4 |
STM32 | Update | v0.1.2 --> v0.1.3 |
mqtt | Update | v0.1.0 --> v0.1.1 |
requests | Update | v1.0.2 --> v1.0.3 |
time | Update | v0.2.1 --> v0.2.2 |
json | Update | v0.1.7 --> v0.1.8 |
_thread | Update | v0.0.6 --> v0.0.7 |
pika_littlefs | Update | v0.0.2 --> v0.0.4 |
flashdb | Update | v0.1.2 --> v0.1.3 |
modbus_rt | Update | v0.2.1 --> v0.2.2 |
_thread
.exception_stack
for thread handling.error_stack
instead of try_error_code
.vmFrame
.VMError
.vm_thread_require
.isinstance
.pika_littlefs
functions and flashdb
support.PikaStdDevice
.Special thanks to all contributors for your hard work and dedication. Every improvement makes PikaPython better for everyone. We look forward to your continued feedback and support.
Published by pikasTech 8 months ago
We are thrilled to announceπ£ the release of PikaPython v1.13.3! This version benefits from numerous community contributions and improvements, fixes multiple bugsπ, and introduces many new featuresπ. Here are the major updates:
try...import
statements, optimized module import logic, improving code robustness and compatibility.package | state | version |
---|---|---|
pikascript-core | Update | v1.13.0 --> v1.13.3 |
PikaStdLib | Update | v1.13.0 --> v1.13.3 |
PikaStdDevice | Update | v2.4.4 --> v2.4.5 |
socket | Update | v0.2.0 --> v0.2.1 |
pika_lvgl | Update | v0.5.0 --> v0.5.1 |
STM32 | Update | v0.1.1 --> v0.1.2 |
modbus | Update | v0.0.7 --> v0.0.8 |
pika_fatfs | Update | v0.1.2 --> v0.1.3 |
mqtt | Update | v0.0.9 --> v0.1.0 |
time | Update | v0.2.0 --> v0.2.1 |
network | Update | v0.1.4 --> v0.1.5 |
flashdb | Update | v0.1.1 --> v0.1.2 |
modbus_rt | Create | v0.2.1 |
Special thanks to all contributors to PikaPython v1.13.3 development and testing. A special shoutout to those who contributed code on Gitee and GitHub. Thank you all for your hard work and dedication, every improvement provides a better experience for our users. We look forward to your continued feedback and support, let's contribute to PikaPython together!
Published by pikasTech 12 months ago
We're thrilled to announce π£ that PikaPython v1.13.0 has been released! This version has benefited from numerous community submissions and improvements, fixed several bugsπ, and introduced many new featuresπ. Below are the main updates:
π New Features and Improvements:
from subdir import src
, import subdir.src
.from <mod> import *
(C modules not yet supported).platform
support for file directory operations, fatfs
support for the os
module has been completed and tested on STM32.pika_hal_utils
, offering a range of simplified APIs derived from pika_hal
.π Bug Fixes:
soft_tim.py
, platform rtthread
, mqtt plat on esp32
.Special thanks to: HelloDuoLA, SenySunny, ζ’¦η¨MI, @kcfkwok, and other contributors on Gitee and GitHub. Thanks for everyone's efforts and contributions. Each improvement provides a better experience for the users. We look forward to your continued feedback and support, contributing together for PikaPython!
package | state | version |
---|---|---|
pikascript-core | Update | v1.12.6 --> v1.13.0 |
PikaStdLib | Update | v1.12.6 --> v1.13.0 |
PikaStdDevice | Update | v2.4.2 --> v2.4.4 |
PikaCV | Update | v0.1.4 --> v0.1.5 |
unittest | Update | v0.1.4 --> v0.1.5 |
socket | Update | v0.1.9 --> v0.2.0 |
binascii | Update | v0.0.4 --> v0.0.5 |
pika_cjson | Update | v1.2.5 --> v1.2.6 |
STM32 | Update | v0.1.0 --> v0.1.1 |
ESP32 | Update | v0.4.3 --> v0.4.4 |
pika_fatfs | Update | v0.1.1 --> v0.1.2 |
mqtt | Update | v0.0.7 --> v0.0.9 |
hashlib | Update | v1.0.3 --> v1.0.5 |
aes | Update | v0.0.2 --> v0.0.3 |
time | Update | v0.1.9 --> v0.2.0 |
json | Update | v0.1.6 --> v0.1.7 |
os | Update | v0.1.3 --> v0.1.4 |
pika_littlefs | Update | v0.0.1 --> v0.0.2 |
flashdb | Create | v0.1.1 |
bluetooth | Create | v0.1.0 |
We encourage all users to downloadπ₯, install, and use PikaPython v1.13.0. If you encounter any issues while using it, please feel free to contact us.
Published by pikasTech about 1 year ago
We are thrilled to announce the release of PikaPython v1.12.6! This version brings a series of optimizations, new feature additions, and bug fixes. Here's a highlight of the updates:
Introduced a new struct
module, version v0.1.0 π¦
Released a new STM32
module, version v0.1.0 π»
This module offers support for the entire STM32 series, replacing modules like STM32F1, STM32F4, etc.
The STM32 module was developed with insights from the rt-thread device framework. Special thanks are in order.
New fsm
and eventloop
modules have been rolled out.
fsm is a multi-threaded state machine, and eventloop is a multi-threaded event loop.
The STM32HAL.pyi
has been renamed to STM32.pyi
π
Added support for GPIO, UART, ADC, DAC, PWM, and time in the STM32
package π
Enhanced rtt compatibility layer π
Now supports struct.unpack()
and tested struct.pack()
π§©
Added __eq__
support for tuple, list, and dict π
SOFT_TIM support: Implemented SOFT_TIM based on thread_timer.
WIFI Fix: Resolved reconnection issues on esp32.
Network adaptation: Adapted the accept
function for TCP server in _WIN32 environments. Kudos to @SenySunny for the contribution!
Camera support: Added camera support for pika_hal. Special thanks to ζ’¦η¨MI for the contribution!
OS package: Adjusted the implementation of the mkdir
function in the OS package for Windows to enhance compatibility. Props to @SenySunny for the fix!
REPL/NORMAL mode: New support for REPL/NORMAL mode for unused stack values.
ssize_t
definition issue on adapter_rtt.h
.os_read_platform
.mkdir
function problem of the os
package on _WIN32
.dict_removeArg
issue.\b
.package | state | version |
---|---|---|
pikascript-core | Update | v1.12.5 --> v1.12.6 |
PikaStdLib | Update | v1.12.5 --> v1.12.6 |
PikaStdDevice | Update | v2.4.0 --> v2.4.2 |
re | Update | v0.1.4 --> v0.1.5 |
struct | Create | v0.1.0 |
socket | Update | v0.1.8 --> v0.1.9 |
pika_lua | Update | v0.0.5 --> v0.0.6 |
STM32 | Create | v0.1.0 |
ESP32 | Update | v0.4.2 --> v0.4.3 |
STM32F4 | Update | v0.1.3 --> v0.1.4 |
pika_fatfs | Update | v0.1.0 --> v0.1.1 |
mqtt | Update | v0.0.6 --> v0.0.7 |
json | Update | v0.1.5 --> v0.1.6 |
network | Update | v0.1.3 --> v0.1.4 |
os | Update | v0.1.2 --> v0.1.3 |
fsm | Create | v0.1.0 |
eventloop | Create | v0.1.0 |
We hope this new v1.12.6 release will provide a better experience for users and enhance both the performance and stability of the system. Thanks to all the developers who contributed to this version! πππ
Published by pikasTech about 1 year ago
We are excited to announce that PikaPython v1.12.5 is now available! This new version introduces several improvements, fixes numerous bugs, and adds some new features. Here are the main updates:
if not xxx:
statementif <str/bytes/object/list>
os_path
package | state | version |
---|---|---|
math | Create | v0.1.1 |
pika_littlefs | Create | v0.0.1 |
pikascript-core | Update | v1.12.4 --> v1.12.5 |
PikaStdLib | Update | v1.12.4 --> v1.12.5 |
PikaStdDevice | Update | v2.3.8 --> v2.4.0 |
PikaMath | Update | v0.2.1 --> v0.2.3 |
PikaCV | Update | v0.1.2 --> v0.1.4 |
re | Update | v0.1.2 --> v0.1.4 |
socket | Update | v0.1.5 --> v0.1.8 |
random | Update | v0.1.2 --> v0.1.3 |
ctypes | Update | v1.1.2 --> v1.1.3 |
binascii | Update | v0.0.3 --> v0.0.4 |
pika_cjson | Update | v1.2.3 --> v1.2.5 |
pika_lua | Update | v0.0.4 --> v0.0.5 |
PLOOC | Update | v1.0.0 --> v1.0.2 |
STM32G0 | Update | v2.1.0 --> v2.1.1 |
ESP32 | Update | v0.4.0 --> v0.4.2 |
STM32F4 | Update | v0.1.2 --> v0.1.3 |
modbus | Update | v0.0.5 --> v0.0.7 |
mqtt | Update | v0.0.4 --> v0.0.6 |
requests | Update | v1.0.0 --> v1.0.2 |
hashlib | Update | v1.0.2 --> v1.0.3 |
hmac | Update | v1.0.1 --> v1.0.2 |
aes | Update | v0.0.1 --> v0.0.2 |
base64 | Update | v1.0.0 --> v1.0.1 |
time | Update | v0.1.7 --> v0.1.9 |
json | Update | v0.1.4 --> v0.1.5 |
network | Update | v0.1.2 --> v0.1.3 |
_thread | Update | v0.0.5 --> v0.0.6 |
zlib | Update | v0.1.0 --> v0.1.2 |
os | Update | v0.1.0 --> v0.1.2 |
This version includes some significant updates, adding new features, optimizations, and bug fixes to improve performance and stability. We hope you will enjoy this new version! πππ
Published by pikasTech over 1 year ago
We are excited to announce the release of PikaPython v1.12.4! This new version has many improvements, bug fixes and newly added features. Please find the main updates below:
Updated and improved PikaCompiler to fix parsing bugs.
Added support for .pya Version 5.
Added support for tuple(), '^', and more self-optimization.
Introduced this and fsm modules.
Support for zlib package and tests.
Support for bytearray() built-in.
Support for isinstance() for native class and simple types.
Enhanced json.dumps speed over 100 times.
Introduced PIKA_UNBUFFERED_ENABLE support.
Support for Pika Lua, including method_proxy and var proxy, and getting return value for pika_lua.eval.
Introduced builtins.pyi for PikaStdLib.
Introduced sshd_config and frpc support for develop docker.
Fixed os release.
Fixed pya load issue.
Fixed pack version 5 issue.
Fixed pika.studio.
Fixed json module, json.loads() with empty object and json parsing issue on jsmn.
Fixed thread create bug for freeRTOS.
Fixed eventloop default loop period and eventloop remove event crash.
Fixed REPL FUNC_KEY reset.
Fixed issues with v1.12.3 including getitem without len, and msc rm dir field.
Module Name | Update Type | Version Change |
---|---|---|
pikascript-core | Update | v1.12.2 --> v1.12.4 |
PikaStdLib | Update | v1.12.2 --> v1.12.4 |
PikaStdDevice | Update | v2.3.7 --> v2.3.8 |
socket | Update | v0.1.4 --> v0.1.5 |
binascii | Update | v0.0.2 --> v0.0.3 |
pika_cjson | Update | v1.2.2 --> v1.2.3 |
pika_lua | Update | v0.0.2 --> v0.0.4 |
pikaRTDevice | Update | v1.1.3 --> v1.1.4 |
mqtt | Update | v0.0.3 --> v0.0.4 |
hashlib | Update | v1.0.1 --> v1.0.2 |
time | Update | v0.1.5 --> v0.1.7 |
json | Update | v0.1.1 --> v0.1.4 |
_thread | Update | v0.0.4 --> v0.0.5 |
zlib | Create | v0.1.0 |
os | Create | v0.1.0 |
Published by pikasTech over 1 year ago
We are excited to announce the release of PikaPython v1.12.2! This version fixes some bugs and vulnerabilities, and adds new features and improvements.
Here's what's new:
We welcome all users to download, install, and use PikaPython v1.12.2. If you encounter any issues during use, please feel free to contact us.
Module | Update Type | Version Change |
---|---|---|
bflb | Create | v0.2.0 |
pikascript-core | Update | v1.12.1 --> v1.12.2 |
PikaStdDevice | Update | v2.3.6 --> v2.3.7 |
PikaCV | Update | v0.1.1 --> v0.1.2 |
unittest | Update | v0.1.2 --> v0.1.4 |
re | Update | v0.1.1 --> v0.1.2 |
random | Update | v0.1.1 --> v0.1.2 |
ctypes | Update | v1.1.1 --> v1.1.2 |
binascii | Update | v0.0.1 --> v0.0.2 |
pika_lvgl | Update | v0.4.4 --> v0.5.0 |
pika_lua | Update | v0.0.1 --> v0.0.2 |
pikaRTThread | Update | v1.3.1 --> v1.3.2 |
pikaRTDevice | Update | v1.1.0 --> v1.1.3 |
STM32G0 | Update | v2.0.0 --> v2.1.0 |
ESP32 | Update | v0.3.1 --> v0.4.0 |
modbus | Update | v0.0.4 --> v0.0.5 |
pika_libc | Update | v1.0.1 --> v1.0.2 |
time | Update | v0.1.3 --> v0.1.5 |
_thread | Update | v0.0.3 --> v0.0.4 |
Published by pikasTech over 1 year ago
We are pleased to announce the release of PikaPython v1.12.1! This version fixes some bugs and vulnerabilities, as well as adds some new features and improvements.
The updates are as follows:
os
module.str.join()
method.clear()
built-in method for scripts on development board.fcntl
method in socket
module in lwip.os
error on ESP32.pika_platform_get_tick()
method in Linux port.pikapackage.exe
.PikaPackageManager
.pikafs
to support packing given files and unpacking *.pack
files to specified paths.pikaui
.pikaCompiler
.We welcome all users to download, install and use PikaPython v1.12.1. If you encounter any issues during use, please feel free to contact us.
Module Name | Update Type | Version Change |
---|---|---|
pikascript-core | Update | v1.12.0 --> v1.12.1 |
PikaStdLib | Update | v1.12.0 --> v1.12.1 |
PikaStdDevice | Update | v2.3.4 --> v2.3.6 |
unittest | Update | v0.1.1 --> v0.1.2 |
socket | Update | v0.1.1 --> v0.1.4 |
pika_cjson | Update | v1.2.1 --> v1.2.2 |
pika_lvgl | Update | v0.4.3 --> v0.4.4 |
STM32F1 | Update | v1.1.3 --> v1.1.4 |
modbus | Update | v0.0.2 --> v0.0.4 |
mqtt | Update | v0.0.2 --> v0.0.3 |
BLMCU | Create | v0.1.0 |
time | Update | v0.1.0 --> v0.1.3 |
_thread | Create | v0.0.3 |
weakref | Create | v0.0.2 |
Published by pikasTech over 1 year ago
Package | Status | Version |
---|---|---|
pikascript-core | Update | v1.11.0 --> v1.12.0 |
PikaStdLib | Update | v1.11.0 --> v1.12.0 |
PikaStdDevice | Update | v1.11.0 --> v2.3.4 |
PikaMath | Update | v0.2.0 --> v0.2.1 |
PikaCV | Update | v0.1.0 --> v0.1.1 |
unittest | Update | v0.1.0 --> v0.1.1 |
re | Update | v0.1.0 --> v0.1.1 |
socket | Update | v0.1.0 --> v0.1.1 |
random | Update | v0.1.0 --> v0.1.1 |
configparser | Update | v0.2.0 --> v0.2.1 |
ctypes | Update | v1.1.0 --> v1.1.1 |
pika_cjson | Update | v1.2.0 --> v1.2.1 |
pika_lvgl | Update | v0.2.0 --> v0.4.3 |
pikaRTThread | Update | v1.3.0 --> v1.3.1 |
PikaVSF | Update | v0.0.1 --> v0.0.2 |
Arm2D | Update | v0.6.0 --> v0.6.1 |
STM32G0 | Update | v1.3.1 --> v2.0.0 |
STM32F1 | Update | v1.1.1 --> v1.1.3 |
ESP32 | Update | v0.1.0 --> v0.3.1 |
STM32F4 | Update | v0.1.0 --> v0.1.2 |
PikaPiZero | Update | v1.3.0 --> v1.4.0 |
CH32V103 | Update | v1.0.0 --> v1.0.1 |
SmartLoong | Update | v0.0.1 --> v0.0.2 |
W801Device | Update | v1.1.0 --> v1.1.1 |
CH582 | Update | v1.1.1 --> v1.1.2 |
modbus | Create | v0.0.2 |
pika_fatfs | Create | v0.1.0 |
mqtt | Create | v0.0.2 |
requests | Create | v1.0.0 |
hashlib | Create | v1.0.1 |
hmac | Create | v1.0.1 |
BLIOT | Create | v0.4.1 |
aes | Create | v0.0.1 |
base64 | Create | v1.0.0 |
pika_libc | Create | v1.0.1 |
time | Create | v0.1.0 |
at_client | Create | v0.0.1 |
json | Create | v0.1.1 |
network | Create | v0.1.2 |
Published by pikasTech about 2 years ago
Published by pikasTech about 2 years ago
Support "try ... exception" #169
Support 0bxxx #171
Support function chain like < String('test').split('t') > #172
Support slice nesting like < a = x[ y[ z ] ] > #173
Support slice chain like < a[x][y] > #174
Support < fun()[x] > #177
Support Tuple literal #178
Support bind .pyi from other *.py expect main.py #180
Support <del> keyword https://gitee.com/Lyon1998/pikascript/issues/I5KDES
Published by pikasTech over 2 years ago
This is the most trustworthy version of PikaScript to date, one that has received a lot of feedback from real-world engineering and offers a lot of practical improvements and bug fixes.
Use double in C while float in python #148
Use double in C Module.
https://www.bilibili.com/video/BV14t4y1x7nv
The python declaration file suffix of the C module is modified from .py to .pyi, and the syntax content remains unchanged.
Modify the .py file suffix of the C module to .pyi.
Published by pikasTech over 2 years ago
Published by pikasTech over 2 years ago
Published by pikasTech almost 3 years ago
Published by pikasTech almost 3 years ago
add rt-thread support package in port/rt-thread
Published by pikasTech about 3 years ago
support script new object like:
"uart = STM32.UART()"
Published by pikasTech about 3 years ago
support download python script by USART in stm32g030.