semvec/pypi-packages huggingface dataset:
thimDri 0.1.6
A package to process thim iot datasets

# thim-dri
A set of tools created to standerdize the processing of iot and cognitive datasets that are generated from the THIM DRI project 


## Technology Integrated Health Management (TIHM)
The TIHM project embraces the ‘Internet of Things’ (IoT) approach inorder to improve the health and wellbeing of people with dementia and their carers. Dementia is a serious disorder, with over 850,000 affected in the UK (Prince et al 2013, 2014), costing £23bn annually (Luengo-Fernandez et al, 2010). The research is funded by NHS England and Innovate UK as one of only two IoT ‘Test Bed’ sites.

## [Dementia Research Institute (UK DRI)](https://ukdri.ac.uk/)
Launched in 2017, the UK Dementia Research Institute (UK DRI) is the single biggest investment the UK has ever made in dementia thanks to £290 million from founding funders the Medical Research Council (MRC), Alzheimer’s Society and Alzheimer’s Research UK. The institute carries out research relevant to all dementias, including Alzheimer’s disease, Parkinson’s disease, frontotemporal dementia, vascular dementia, Huntington’s disease and beyond.
easy-kafka 0.0.4
easy to use kafka(kb)

easy_kafka
^^^^^^^^^^
Easy to use python kafka(for kb first)

As a message queue, Kafka has the following characteristics:

* Stable, No data loss.
* Save sent messages.
* Allow larger data.
* Allow slower speed.


Quick Start
-----------
**Installation**: pip install easy_kafka

1.config
>>>>>>>>
Edit conf/conf.yml
::

    kafka: # kafka config
      bootstrap_servers: 127.0.0.1:9092 # kafka servers, multiple, 172.1.0.2:9092,172.1.0.1:9092
      group_id: group # consumer group
      topic_subscribe: # topic, multiple
        - topic1
        - topic2
      topic_produce: topic1_result # producer default topic

2.demo-consumer
>>>>>>>>>>>>>>>>>>
::

    import json
    from easy_kafka.kafka_consumer import EasyKafkaConsumer

    def start_consumer():
        kafka_consumer = EasyKafkaConsumer('conf/conf.yml')
        print('consumer iterator started')
        for record in kafka_consumer:
            print('record', record.value)
            print('json', json.loads(record.value))

    if __name__ == "__main__":
        start_consumer()

3.demo-consumer-callback
>>>>>>>>>>>>>>>>>>>>>>>>>
::

    import json
    from easy_kafka.kafka_consumer import EasyKafkaConsumer
    from easy_kafka.kafka_producer import EasyKafkaProducer

    kafka_producer = EasyKafkaProducer('conf/conf.yml')

    def consumer_task(record):
        """
        consumer callback
        :param record: object
        :return:
        """
        print('consumer_task', record.value)
        print('json', json.loads(record.value))
        if record.topic is 'topic1':
            kafka_producer.produce_msg({'type': 'task result'})

    def start_consumer():
        kafka_consumer = EasyKafkaConsumer('../conf/conf.yml')
        print('consumer task started')
        kafka_consumer.subscribe(fn=consumer_task)

    if __name__ == "__main__":
        start_consumer()

4.demo-producer
>>>>>>>>>>>>>>>>>>>>>>>>>
::

    from easy_kafka.kafka_config import EasyKafkaConfig
    from easy_kafka.kafka_producer import EasyKafkaProducer

    def demo_produce_msg():
        kafka_producer = EasyKafkaProducer('conf/conf.yml')
        kafka_producer.produce_msg({'name': 'ksust'})

    def demo_produce_msg_with_config():
        config = EasyKafkaConfig('conf/conf.yml')
        print('config', config.__dict__)
        kafka_producer = EasyKafkaProducer(config)
        kafka_producer.produce_msg({'name': 'ksust'})
        kafka_producer.produce_msg_topic('topic1', {'name': 'ksust'})

    if __name__ == "__main__":
        demo_produce_msg()
        demo_produce_msg_with_config()
easy-mongo 0.0.4
easy to use mongo(kb)

easy_mongo
^^^^^^^^^^
Easy to use python mongo(for kb first)

pymongo Reference: https://pymongo.readthedocs.io/en/3.10.0/tutorial.html

Quick Start
-----------
**Installation**: pip install easy_mongo

1.config
>>>>>>>>
Edit conf/conf.yml
::

    mongo: # mongo config
      host: 127.0.0.1
      port: 27017
      name: db_name
      password: password # blank if not require

2.demo
>>>>>>
::

    from easy_mongo.mongo import EasyMongo

    def demo_mongo():
        easy_mongo = EasyMongo('../conf/conf.yml')
        col = easy_mongo.get_collection('country')
        # get first 10 items
        # reference pymongo
        for item in col.find().limit(10):
            print(item)


    if __name__ == '__main__':
        demo_mongo()
iribaker 0.2
Safely convert IRI-like string to IRI.

Replaces invalid charactes with an underscore (i.e. does not support roundtripping).
Falls back to standard URL percent encoding.
Home-page: http://github.com/clariah/iribaker
Author: Rinke Hoekstra (VU University Amsterdam/University of Amsterdam)
Author-email: rinke.hoekstra@vu.nl
License: MIT
Description: UNKNOWN
Platform: UNKNOWN
c2dataviewer-mpogacnik-test 3.6.11
Python based data viewer for next generation of APS control system (C2)

<p align="center">
  <h1 align="center">C2DataViewer: EPICS7 pvObject Data Viewer</h1>
</p>

C2DataViewer is a Python based data viewer for next generation of APS control system (C2).
It is developed with pyqtgraph, PyQt, and uses pvaPy as pvAccess Python binding.
This is a viewer for pvData structured data objects as transported by pvAccess. Some use cases are a 'scope viewer',
and Area Detector images from the AD pva plugin.

# Conda Packaging

To build a conda package:
```bash
make
```

To install build package in a new environment:
```bash
conda create -n c2dv.0001 local::c2dataviewer -c default -c epics -c conda-forge
```

To run app from new environment:
```bash
source activate c2dv.0001
c2dv --app scope
```

# Pip Packaging

To install pip dependencies:
```bash
make pip-dependecies
```

To build a pip package:
```bash
make pip-build
```

To upload the package on PyPI:
```bash
make pip-upload
```

To run the unit tests run:
```bash
make pip-test
```