materials-data-facility / connect_client Goto Github PK
View Code? Open in Web Editor NEWThe MDF Connect Client is the Python client to easily submit datasets to MDF Connect.
License: Apache License 2.0
The MDF Connect Client is the Python client to easily submit datasets to MDF Connect.
License: Apache License 2.0
Use a library with tests to outsource the name parsing, which can get quite complex
https://github.com/derek73/python-nameparser
It would be good to fail if a valid service isn't specified.
Reflect the change in name for repositories to organizations in the connect client.
The check status message gives a KeyError
Cell In[17], line 1
----> 1 client.check_status(result['source_id'])
File [~\AppData\Local\miniconda3\envs\camp\Lib\site-packages\mdf_connect_client\mdfcc.py:987](http://localhost:8888/lab/tree/~/AppData/Local/miniconda3/envs/camp/Lib/site-packages/mdf_connect_client/mdfcc.py#line=986), in MDFConnectClient.check_status(self, source_id, short, raw)
985 print("{}: {}".format((source_id or self.source_id), active_msg))
986 else:
--> 987 print("\n{}\n{}\n".format(json_res["display_status"], active_msg))
add_data_source() already accepts a list, so add_service() only accepting strings seems a bit surprising. Certainly saves a bit of effort if you can pass a list.
We currently have some methods of the form set_X and some of the form create_x_block.
Let's change these for consistency to:
create_mrr_block() --> set_mrr()
create_dc_block() --> set_dc()
It would be helpful if there was a helper built in to submit a dataset revision with everything remaining constant but the data. This seems to be a fairly common case that comes up.
For example, the underlying data change, and we want to keep the datacite metadata constant while changing the dataset file contents and re-parsing.
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.