Comments (3)
The DotAAS spec describes BlobType as a "Group of bytes". In python, both, bytes
and bytearray
, allow storing bytes. The only difference seems to be that bytes
is immutable, so a bytes
object cannot be modified after creation. bytearray
however isn't immutable. I don't see why a user should want to modify a bytearray by hand, but I also don't see why we should prevent them from doing so. Thus I'm fine with changing the type to bytearray
.
from basyx-python-sdk.
Personally, I'd vote for following aas-core-meta as closely as possible in light of it being the represenation from which the official schemata and SDKs are generated.
from basyx-python-sdk.
We probably chose bytes
over bytearray
, because base64.b64decode()
returns a bytes
object and because bytes
is the more primitive type, it can be instantiated simply by prefixing a string with b
, e.g. b'\x00\x00'
, while bytearray
requires wrapping it in bytearray()
. We are currently spec-compliant with our bytes
implementation, but we can discuss about changing it to bytearray
.
from basyx-python-sdk.
Related Issues (20)
- Adding a SubmodelElementCollection to multiple Shells HOT 2
- Recurring: Update Copyright Notice
- BaSyx-Core: Add functionality to adapt import statement
- BaSyx-Core: Refactor Backend functionality to global functions HOT 1
- BaSyx-Core: Deprecate ModelReference HOT 1
- BaSyx-Core: Adapt Tutorials HOT 1
- BaSyx-Core: Datatype handling HOT 1
- BaSyx-Core: Remove KEY_TYPES_CLASSES in model.__init__.py HOT 1
- BaSyx-Core: Adjust import statements HOT 1
- BaSyx-Core: Adjust `fragments/namespace.py` HOT 1
- BaSyx-Core: Adapt `model.provider` HOT 1
- BaSyx-Core: Replace `Identifier` type hint with `str` HOT 1
- BaSyx-Core: Fix `_check_has_extension_equal()` HOT 1
- Rearrange SubmodelElements within a SubmodelElementCollection HOT 2
- Fetch all properties in submodel HOT 4
- Connect AAS Package Explorer to Python / Couchdb for live visualization? HOT 3
- Refactor towards monolithic repository
- tutorial_serialization_deserialization: Remove outdated reference to removed tutorial
- Codestyle: adapt line length to 72 characters instead of 120 HOT 1
- README: Specification Links are broken HOT 1
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 basyx-python-sdk.