Metadata-Version: 2.4
Name: necmec_api
Version: 0.1.2
Summary: Python client for interacting with the necmec API
Home-page: https://github.com/bipulkkuri/necmec_api
Author: Bipul Kumar Kuri
License: MIT
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.1
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# NECMEC API python wrapper Client

A Python client for interacting with the **NECMEC API python wrapper**. This API allows users to submit reports, upload files, and perform other operations necessary to complete the submission process. Base API docs https://exttest.cybertip.org/ispws/documentation/index.html#overview

## Features

- **Verify Connection**: Check if the client can connect to the server and authenticate.
- **Download XSD Schema**: Retrieve the latest XML Schema Definition (XSD) for report submission.
- **Report Submission**: Open and submit a report in the system.
- **File Upload**: Upload files to a report.
- **File Details**: Provide additional details for uploaded files.
- **Finish Submission**: Finish the report submission process.
- **Retract Submission**: Cancel an open report submission.

## Installation

To install the package, you can use `pip`:

```bash
pip install .
```

### help
```
python3 -m necmec_api.cli --help
```

### status
```
python3 -m necmec_api.cli --config config.json --username your_username --password your_password --environment test status
```

### submit a report 
```
python3 -m necmec_api.cli --config config.json --username your_username --password your_password --environment test  submit "<xml_data>"

```

### Cancel the Report
```
python3 -m necmec_api.cli --config config.json --username your_username --password your_password --environment test  retract <report_id>
```

### Refer demo.py
```
python3 demo.py
```
