kxepal / python-astm Goto Github PK
View Code? Open in Web Editor NEWPython implementation of ASTM E1381/1394 data protocol.
Home Page: http://python-astm.readthedocs.org/en/latest/
License: Other
Python implementation of ASTM E1381/1394 data protocol.
Home Page: http://python-astm.readthedocs.org/en/latest/
License: Other
Python implementation of ASTM E1381/1394 data protocol. This project aims to solve three tasks: 1. Provide decoder ASTM data to Python objects and encode them back to valid ASTM messages. 2. Provide ability to create your own ASTM client and server applications followed by common specification routines. 3. Provide ready-to-use "drivers" for various ASTM-driven analysers, middlewares and other software or hardware solutions. Depending on your needs you may use this project in one of these ways. Currently, all communication routines are implemented for TCP/IP protocol driven by a bit improved standard asynclib. Read the docs for more info: http://python-astm.readthedocs.org
How can run a client by taking the string from the console, encoding it to the respective record and emitting it to the server?
c:\jinjia\python-astm\astm>python client.py
Traceback (most recent call last):
File "client.py", line 12, in
from .asynclib import loop
ValueError: Attempted relative import in non-package
c:\jinjia\python-astm\astm>
I run client directly and get response as above!
hot to run it in server or client mode?
When I throw a patient record object from the emitter, it is decoded as a list of string with each string representing the value of the field.
I want to decode the record as a patient record object so that each field can be accessed as a attribute.
Im trying to implement a astm server which simulates the behavior similar to Roche cobase e411 Harmone Analyzer.
Does this library supports only TCP/IP
I have a serial port setup for ASTM Server and Lab Machine (Cobase e411)
Hi, kepal, Sorry to trouble you. But I am wonder to know how to simulator an ASTM server with your code. I am working with a data reader(a lite vesion LIS ) for a custom's HITCHI 7600 Hitachi 7600 modular chemistry analyzer. Unfortunatly, I can't connect to the machine directly, we are not at the same city. And I wonder if I can silmulator an ASTM server send data as the machine dose to verify my ASTM client(wriitern with c#).
Hi, may I have a sample code that initialize ASTM client and sending data?
Thank you,
Sem
Hello,
Using code in #1 , I was able to send data to server, so far so good.
But how does the server is supposed to send data to client ? I looked at the doc and examples but I don't understand how it is meant to be done.
Thx
lis connect to instrument with serial connection .
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.