semvec/pypi-packages huggingface dataset:
todo_extractor 0.2.2
Extracts TODO: notes from source code.
Requires Python: >=3.6

# todo-extractor

Extracts TODO comments from code.

The purpose of this project is to serve as an example of going from a script to a full-fledged project and to be used with the presentation [Modern Python development](https://github.com/vikahl/modern-python-development) at [Omegapoints conference OpKoKo 19.2](https://opkoko.omegapoint.se).

It might be turned into something useful, but currently it's main purpose is to give examples to the presentation.

## Usage

Run it from the command line like:

```
$ todo_extractor <optional directory>
```

if no directory is specified the current directory will be used.

todo-extrator prints a JSON output with match, line number and filename.


## Development

Development should preferable always be done in a virtualenv.

Installation is done with flit, which needs to be first be installed in the virtualenv (`pip3 install flit`).

The package can be installed in development mode with

```
flit install --symlink
```

or on Windows

```
flit install --pth
```

This will install the package in editable mode and also install the dev-dependencies.

## Testing

Testing can be done with pytest: `pytest --cov=todo_extractor` which will also measure test coverage.

To test the installed package, use tox (`tox`). This will test the installed package on all supported Python versions.
gnu-health-fhir 2.0.0
Provides FHIR interface to GNU Health.

# gnu_health_fhir

This package aims to provide a functional FHIR interface to GNU Health data models. With the provided classes, one should be able to work to and from the back-end data from GNU Health in a FHIR-compatible way. The module, ultimately, should provide a full interface - CRUD, type conversions, serializers, and so on.

#### Design

The ultimate goal is that for every appropriate FHIR Resource there will be an adapter which interfaces with the backend data models.

There are plans to extend some of the resources to better approximate the GNU Health data schemes. The FHIR specification and GNU Health storage format rarely overlap, many times requiring significant data contortions. This is an ongoing process and there is a decided lack of motivation to do too much heavy-lifting, consequently these 'hacks' should be kept to a minimum.

#### Resources

Currently, the package at least partially supports reads of these FHIR resources:

- Patient
- Practitioner
- Immunization
- Condition
- Observation
- DiagnosticReport
- MedicationStatement
- FamilyMemberHistory
- Procedure
- Encounter
- ClinicalImpression
- Coverage

Not every resource's element is currently supported. Some of the elements have no equivalent in GNU Health, do not apply, have not reached maturity, or are undesirable in other ways. The FHIR resources are still under active development which makes them a moving target. The goal is to support all the reasonable, appropriate elements.

#### Usage

The easiest example is to use Proteus with this package:

    from proteus import config, Model
    from gnu_health_fhir import Patient

    #Connect to the GNU Health demo server
    config = config.set_xmlrpc('http://admin:gnusolidario@health.gnusolidario.org:8000/health36/')

    #Get the patient model
    model = Model.get('gnuhealth.patient')

    #Find the first patient
    first_patient = model.find()[0]

    #Convert to a fhir data object
    patient = Patient.to_fhir_object(first_patient)

    #Now you can use the data just like in fhirclient
    print(patient.as_json())

#### Libraries used

- fhirclient (core FHIR data models)
- pendulum (sane datetimes)