mirror of
https://github.com/pocketpy/pocketpy
synced 2026-02-04 06:30:17 +00:00
update docs
This commit is contained in:
parent
f10cc37c63
commit
5f8d9fefc3
13
README.md
13
README.md
@ -49,17 +49,13 @@ These platforms are officially tested.
|
||||
+ iOS 64-bit
|
||||
+ Emscripten 32-bit
|
||||
+ Raspberry Pi OS 64-bit
|
||||
+ [Luckfox Pico SDK](https://github.com/LuckfoxTECH/luckfox-pico) 32-bit
|
||||
|
||||
## Quick Start
|
||||
|
||||
You have two options to integrate pkpy into your project.
|
||||
|
||||
#### Use the single header file
|
||||
|
||||
Download the `pocketpy.h` and `pocketpy.c` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||
And `#include` it in your project.
|
||||
|
||||
#### Use CMake
|
||||
#### Use CMake (Recommended)
|
||||
|
||||
Clone the whole repository as a submodule into your project,
|
||||
In your CMakelists.txt, add the following lines:
|
||||
@ -73,6 +69,11 @@ See [CMakeLists.txt](https://github.com/pocketpy/pocketpy/blob/main/CMakeLists.t
|
||||
|
||||
It is safe to use `main` branch in production if CI badge is green.
|
||||
|
||||
#### Use the single header file
|
||||
|
||||
Download the `pocketpy.h` and `pocketpy.c` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||
And `#include` it in your project.
|
||||
|
||||
### Compile Flags
|
||||
|
||||
To compile it with your project, these flags must be set:
|
||||
|
||||
@ -8,9 +8,9 @@ order: 81
|
||||
The feature requires pocketpy version >= `2.1.7`
|
||||
!!!
|
||||
|
||||
You can deploy your pocketpy program as bytecode files.
|
||||
It provides some sort of code obfuscation and may slightly improve the loading speed of your program.
|
||||
It makes your users unable to get your source code directly, unless they do expensive reverse engineering.
|
||||
You can deploy your pocketpy program as bytecode files, which slightly improves the loading speed of your program.
|
||||
|
||||
It also makes your users unable to get your source code directly, unless they do expensive reverse engineering.
|
||||
|
||||
To compile a `.py` file into a `.pyc` bytecode file, you need the command-line executable `main`,
|
||||
which can be simply built by running `python cmake_build.py` in the repository root.
|
||||
|
||||
@ -22,7 +22,7 @@ The easiest way to test a feature is to [try it on your browser](https://pocketp
|
||||
|
||||
1. Descriptor protocol `__get__` and `__set__`. However, `@property` is implemented.
|
||||
2. `__slots__` in class definition.
|
||||
3. `else` clause in try..except.
|
||||
3. `else` and `finally` clause in try..except.
|
||||
4. Inplace methods like `__iadd__` and `__imul__`.
|
||||
5. `__del__` in class definition.
|
||||
6. Multiple inheritance.
|
||||
|
||||
@ -44,6 +44,7 @@ These platforms are officially tested.
|
||||
+ iOS 64-bit
|
||||
+ Emscripten 32-bit
|
||||
+ Raspberry Pi OS 64-bit
|
||||
+ [Luckfox Pico SDK](https://github.com/LuckfoxTECH/luckfox-pico) 32-bit
|
||||
|
||||
## Star the repo
|
||||
|
||||
|
||||
@ -6,12 +6,7 @@ label: Quick Start
|
||||
|
||||
You have two options to integrate pkpy into your project.
|
||||
|
||||
#### Use the single header file
|
||||
|
||||
Download the `pocketpy.h` and `pocketpy.c` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||
And `#include` it in your project.
|
||||
|
||||
#### Use CMake
|
||||
#### Use CMake (Recommended)
|
||||
|
||||
Clone the whole repository as a submodule into your project,
|
||||
In your CMakelists.txt, add the following lines:
|
||||
@ -25,6 +20,11 @@ See [CMakeLists.txt](https://github.com/pocketpy/pocketpy/blob/main/CMakeLists.t
|
||||
|
||||
It is safe to use `main` branch in production if CI badge is green.
|
||||
|
||||
#### Use the single header file
|
||||
|
||||
Download the `pocketpy.h` and `pocketpy.c` on our [GitHub Release](https://github.com/pocketpy/pocketpy/releases) page.
|
||||
And `#include` it in your project.
|
||||
|
||||
### Compile flags
|
||||
|
||||
To compile it with your project, these flags must be set:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user