Comments (5)
I like the second approach.
from belay.
Currently we don't support bytearray
s (we do support bytes
, however). Belay works on the symmetry of repr
serialization and ast.literal_eval
deserialization to work. However, I just noticed that ast.literal_eval('b"\x00"')
doesn't work (literal_eval
doesn't like null bytes), so maybe we should swap it out with a more powerful parser.
EDIT: ok the null byte thing was an escaping issue, however, I'll look into supporting bytearrays
from belay.
If we swap out ast.literal_eval
with the unsafe eval
, we can support bytearray
s (as well as any other class who's repr
perfectly matches it's constructor). However, this then allows arbitrary execution from a remote device, which doesn't sound like a great idea.
Maybe we can set an "unsafe parsing" boolean that then sets whether or not to use ast.literal_eval
vs eval
. Thoughts?
from belay.
this should be pretty easy; i'll really try to get to this and the pydantic stuff soon.
from belay.
closing this issue, further discussion can be done in the PR. I'll be merging and releasing once CI is sorted out (it's like 50% sorted out as of right now).
from belay.
Related Issues (20)
- global scope vars can't be accessed if reassigned in task HOT 3
- Bug: `setup` with arguments fails HOT 5
- API for interrupts / callbacks HOT 18
- v0.20.0 deps and belay select issue HOT 6
- How to control memory allocation HOT 5
- LED Example does not run HOT 3
- Using belay in a class HOT 10
- AttributeError: type object 'Executer' has no attribute 'setup' HOT 2
- Find available devices HOT 13
- `Yield` returns `None` HOT 4
- Using Pimoroni libraries HOT 4
- Timed generator helper function HOT 3
- Injecting methods HOT 9
- Send event/request from board/device HOT 5
- OSError: could not get source code HOT 3
- sync uses wrong path `\` characters when copying files to /pyboard while Python 3 is running on windows machines. HOT 13
- Unable to synch with CircuitPython 8.0 on Trinkey HOT 14
- CircuitPython remount in boot.py makes drive readonly to PC. HOT 3
- ImportError no module named analogio HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from belay.