semvec/pypi-packages huggingface dataset:
stix-edh 1.0.3
An EDH marking extension API for python-stix.

stix-edh
========

|Build_Status| |Version|

An extension to python-stix supporting STIX Data Markings for the `Enhance
Shared Situational Awareness (ESSA) <https://www.us-cert.gov/essa>`_
Initiative's Information Sharing Architecture (ISA) Access Control Specification
(ACS), which are based on the US Intelligence Community's Enterprise Data Header
(EDH) specification.

About the version numbers
-------------------------

stix-edh supports **version 2.0** of the ISA Marking extensions for STIX,
published January 19, 2016:

   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/ISAMarkingsType.v2.xsd
   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/ISAMarkingsAssertionsType.v2.xsd
   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/SD-EDH_Profile_Cyber.v3.xsd

These schemas use version **3.0** of the Smart Data EDH Cyber Profile, and
correspond to ACS Version 3.0.

**NOTE:** stix-edh does **not** currently support version 1.0 of the ISA Marking
extensions (published February 26, 2015), which use the schemas below. Version
1.0 of the ISA Marking extensions use version **2.0** of the Smart Data EDH
Cyber Profile, and corresponds to ACS Version 2.0.

   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/ISAMarkingsType.xsd
   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/ISAMarkingsAssertionsType.xsd
   - https://www.us-cert.gov/sites/default/files/STIX_Namespace/SD-EDH_Profile_Cyber.xsd

The ``stix-edh`` library itself uses `semantic versioning
<http://semver.org/>`_, and the version numbers are unrelated to the versions of
EDH, ACS, or ISA.

Usage
-----

To parse XML using with EDH data markings, just ``import stix_edh`` **after**
``import stix``.

.. code:: python

    import stix
    import stix_edh  # automatically registers extensions with python-stix

    # Go on to parse your stix package
    from stix.core import STIXPackage
    package = STIXPackage.from_xml('stix.xml')

To create data markings, create an instance of ``stix_edh.ISAMarkings`` or
``stix_edh.ISAMarkingsAssertions``, and add it to a ``MarkingSpecification``
object as a ``MarkingStructure``. See ``examples/create-isa.py`` in the source
repository for more information.

Requirements
------------

* Python 3.7+
* python-stix

  * for STIX 1.1.1:  >= 1.1.1.8 and < 1.2.0.0
  * for STIX 1.2:  >= 1.2.0.3

* mixbox > 1.0.5


Notice
------

This software was produced for the U. S. Government, and is subject to the
Rights in Data-General Clause 52.227-14, Alt. IV (DEC 2007).

Copyright (c) 2017, The MITRE Corporation. All Rights Reserved.

.. |Build_Status| image:: https://github.com/mitre/stix-edh/workflows/stix-edh%20test%20harness/badge.svg
   :target: https://github.com/mitre/stix-edh/actions?query=workflow%3A%22stix-edh+test+harness%22
.. |Version| image:: https://img.shields.io/pypi/v/stix-edh.svg?maxAge=3600
   :target: https://pypi.python.org/pypi/stix-edh/
JSON-DataFrame-Parser 0.0.3a0
Used to parse JSON files into normalized pandas DataFrames.

<h1 align="center">JSON DataFrame Parser</h1>

<p align="center">
  <img alt="Github top language" src="https://img.shields.io/github/languages/top/LMastro99/json-dataframe-parser?color=56BEB8">

  <img alt="Github language count" src="https://img.shields.io/github/languages/count/LMastro99/json-dataframe-parser?color=56BEB8">

  <img alt="Repository size" src="https://img.shields.io/github/repo-size/LMastro99/json-dataframe-parser?color=56BEB8">

  <img alt="License" src="https://img.shields.io/github/license/LMastro99/json-dataframe-parser?color=56BEB8">

  <!-- <img alt="Github issues" src="https://img.shields.io/github/issues/LMastro99/json-dataframe-parser?color=56BEB8" /> -->

  <!-- <img alt="Github forks" src="https://img.shields.io/github/forks/LMastro99/json-dataframe-parser?color=56BEB8" /> -->

  <!-- <img alt="Github stars" src="https://img.shields.io/github/stars/LMastro99/json-dataframe-parser?color=56BEB8" /> -->
</p>

<!-- Status -->

<!-- <h4 align="center"> 
	🚧  JSON DataFrame Parser 🚀 Under construction...  🚧
</h4> 

<hr> -->

<p align="center">
  <a href="#dart-about">About</a> &#xa0; | &#xa0; 
  <a href="#sparkles-features">Features</a> &#xa0; | &#xa0;
  <a href="#rocket-technologies">Technologies</a> &#xa0; | &#xa0;
  <a href="#white_check_mark-requirements">Requirements</a> &#xa0; | &#xa0;
  <a href="#checkered_flag-starting">Starting</a> &#xa0; | &#xa0;
  <a href="#memo-license">License</a> &#xa0; | &#xa0;
  <a href="https://github.com/LMastro99" target="_blank">Author</a>
</p>

<br>

## :dart: About ##

Used to parse JSON files into normalized pandas DataFrames.

For more details, see the [demo](/doc/demo.ipynb)

## :sparkles: Features ##

:heavy_check_mark: JSON_DataFrame_Parser: A class used to parse JSON files into normalized pandas DataFrames.
- \_\_init\_\_: This function initializes the JSON_DataFrame_Parser object.
- flatten: This function flattens a single user specified DataFrame by 1 level and returns the resulting DataFrame.
- normalize: This function normalizes a single user specified DataFrame by 1 level and returns the results as a list of DataFrames.
- explode: This function explodes a DataFrame, creating multiple columns to represent the exploded records.

:heavy_check_mark: Decorators:
- entry_exit: This function is called as a decorator to indicate the entry and exit of a user specified function.

## :white_check_mark: Requirements ##

Before starting :checkered_flag:, you need to have [Git](https://git-scm.com) installed.

## :checkered_flag: Starting ##

```bash
# Clone this project
$ git clone https://github.com/LMastro99/json-dataframe-parser

# Access
$ cd json-dataframe-parser

# Install dependencies
$ yarn

# Run the project
$ yarn start

# The server will initialize in the <http://localhost:3000>
```

## :memo: License ##

This project is under license from MIT. For more details, see the [LICENSE](LICENSE.md) file.


Made with :heart: by <a href="https://github.com/LMastro99" target="_blank">Leonidas (Louie) Mastrokostas</a>

&#xa0;

<a href="#top">Back to top</a>