semvec/pypi-packages huggingface dataset:
glud 0.4.0rc5
Functional tools for matching nodes in the clang AST
License: MIT
Keywords: libclang,clang,AST

====
Glud 
====

Overview
========


Glud is an abstraction on the libclang library that make matching fragments of
the Clang AST simple and Pythonic, in the same way that `libclangastmatchers`_
does for the C++ Clang API. 

|license| |build| |coverage| |docs|

Examples
========

On the code snippet

.. code:: cpp

    // input.cpp
    namespace X {
        class Y {};
    }
    class Y {};

You could match a class named X in the namespace Y with the matcher:

.. code:: python

    from glud import *
    m = cxxRecordDecl(
             hasName('Y'),
             hasAncestor(namespaceDecl(hasName('X'))))
    tu = parse('input.cpp')
    matches = walk(m, tu.cursor)


Prerequisites
=============

Install a recent version of Clang and the python libclang bindings. On Ubuntu
Trusty, you can install pre-built binaries from the LLVM apt repositories:

.. code:: console

    wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key | sudo apt-key add -
    echo "deb http://llvm.org/apt/trusty/ llvm-toolchain-trusty-3.8 main" | sudo tee -a /etc/apt/sources.list
    sudo apt-get update -qq
    sudo apt-get install -y python-clang-3.8 libclang1-3.8

To run glud, you'll need to make sure that libclang.so is on your loader path.

.. code:: console

    export LD_LIBRARY_PATH=/usr/lib/llvm-3.8/lib

Installing
==========

You can install the latest stable version from PyPI

.. code:: console

    $ pip install glud


Acknowledgements
================

This project builds on the excellent work of the LLVM team and the University of
Illinois at Urbana-Champaign, but is in no way affiliated with either.


Contributing
============

If you experience problems with glud, `log them on GitHub`_. If you
want to contribute code, please `fork the code`_ and `submit a pull request`_.



.. _libclangastmatchers: http://clang.llvm.org/docs/LibASTMatchersReference.html
.. _log them on Github: https://github.com/AndrewWalker/glud/issues
.. _fork the code: https://github.com/AndrewWalker/glud
.. _submit a pull request: https://github.com/AndrewWalker/glud/pulls

.. |license| image:: https://img.shields.io/badge/license-MIT-blue.svg
   :target: https://raw.githubusercontent.com/andrewwalker/glud/master/LICENSE
   :alt: MIT License

.. |build| image:: https://travis-ci.org/AndrewWalker/glud.svg?branch=master
   :target: https://travis-ci.org/AndrewWalker/glud
   :alt: Continuous Integration

.. |coverage| image:: https://coveralls.io/repos/github/AndrewWalker/glud/badge.svg?branch=master 
   :target: https://coveralls.io/github/AndrewWalker/glud?branch=master
   :alt: Coverage Testing Results

.. |docs| image:: https://readthedocs.org/projects/docs/badge/?version=latest
   :alt: Documentation Status
   :target: http://glud.readthedocs.io/en/latest/?badge=latest
tapp-config 0.0.3
Configuration for tapps (redis, logger, etc.)
License: MIT

tapp-config |Build Status| |Coverage Status|
============================================

Configuration for tapps (redis, logger, etc.)

Usage
~~~~~

Reads in a .ini configuration file based on environment variables.

| Each TAPP can specify it's own configuration file by setting the
| environmental variable that corresponds to it's name. The variable
| format is:

``<TAPP_NAME>_CONFIG_FILE``

| So, for example, if your TAPP is named 'test', then this package
| would expect it's config file to be specified in the
``TEST_CONFIG_FILE``
| environmental variable.

| If no environmental variable is found, then the local ``cfg.ini`` path
| is tried.

Contents
~~~~~~~~

| While TAPPs can define their own configuration parameters, this
| package comes with some universal configuration settings for the
| database and logging.

::

    [db]
    SA_ENGINE_URI: sqlite:////tmp/test.db

    [log]
    LOGFILE: /tmp/test.log
    LOGLEVEL: DEBUG

.. |Build Status| image:: https://travis-ci.org/GitGuild/tapp-config.svg?branch=master
   :target: https://travis-ci.org/GitGuild/tapp-config
.. |Coverage Status| image:: https://coveralls.io/repos/GitGuild/tapp-config/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/GitGuild/tapp-config?branch=masterVisit https://github.com/gitguild/tapp-config to see the full README, the
issue tracker, and others.


.. |Build Status| image:: https://travis-ci.org/GitGuild/tapp-config.svg?branch=master
   :target: https://travis-ci.org/GitGuild/tapp-config
.. |Coverage Status| image:: https://coveralls.io/repos/GitGuild/tapp-config/badge.svg?branch=master&service=github
   :target: https://coveralls.io/github/GitGuild/tapp-config?branch=master
vsi 0.1.1
very simple interpreter written in pure python
License: MIT

vsi
---

very simple interpreter written in pure python without any
third party dependencies.


Installation
------------

you will need `python <https://www.python.org/downloads/>`_ interpreter and
`pip <https://pip.pypa.io/en/stable/installing/>`_ package manager
after that run this command

.. code-block:: bash

    $ pip install vsi

**note**: for linux and mac users you may want to prefix the command with sudo


Quick Start
-----------

.. code-block:: ruby

    # this is a comment

    # variables
    x := 1;
    y := x + 2;

    # printing
    print x;
    print y;

    # if statements
    if y > x then
        z := y;
    # optional else
    else
        z := x;
    done

    # while statemnt
    while x < 5 do
        x := x + 1;
        print x;
    done


save this to hello.vsi file and then

.. code-block:: bash

    $ vsi hello.vsi


output

.. code-block:: bash

    1
    3
    2
    3
    4
    5

see more examples at examples/ folder


Is it tested
------------

yes, follow the following steps:

.. code-block:: bash

    $ # first clone the repository
    $ git clone https://github.com/afaki077/vsi.git
    $ # change directory to the clone repository
    $ cd vsi
    $ # install required packages for testing
    $ pip install -r test-requirements.txt
    $ # let's run tests
    $ py.test


LICENSE
-------
**MIT**

see LICENSE file for more information.
extract_iocs 2.0.1
Extracts indicators of compromise (IOCs), including domain names, IPv4 addresses, email addresses, and hashes, from text.
License: MIT
Keywords: security ioc domain email hash md5 sha1 sha256 regex

extract_iocs is a Python module that extracts indicators of compromise (IOCs),
including domain names, IPv4 addresses, email addresses, and hashes, from
text. It uses some huge and ugly regexes, has special handling to identify
domain names with a relatively low false-positive rate, and does some magic to
try to extract IOCs across line breaks.

This script was inspired by and initially based on Stephen Brannon's
IOCextractor (https://github.com/stephenbrannon/IOCextractor), but turned into
a complete rewrite. extract_iocs provides no GUI and does not support any kind
of analyst workflow. It is intended to be used for triage or automation
purposes where a relatively high FP rate (as well as the occational false
negative) are acceptable.