Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Python client v3 (UASTv2) #128

Merged
merged 53 commits into from Mar 12, 2019
Merged

Python client v3 (UASTv2) #128

merged 53 commits into from Mar 12, 2019

Commits on Oct 4, 2018

  1. use the new libuast; rewrite bindings using cpp layer of libuast

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 4, 2018
    Copy the full SHA
    9b5b502 View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2018

  1. working bindings prototype

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 11, 2018
    Copy the full SHA
    2788a1a View commit details
    Browse the repository at this point in the history

Commits on Oct 16, 2018

  1. fix string memory management

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 16, 2018
    Copy the full SHA
    8e39632 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2018

  1. refactoring: NodeExtType->PyNodeExtType for consistency

    Signed-off-by: Alexander Bezzubov <bzz@apache.org>
    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    d3b6bf9 View commit details
    Browse the repository at this point in the history
  2. refactoring: NodeExt->PyNodeExt for consistency

    Signed-off-by: Alexander Bezzubov <bzz@apache.org>
    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    6ce2b11 View commit details
    Browse the repository at this point in the history
  3. refactoring: PyUastType->PyContextType for consistency

    Signed-off-by: Alexander Bezzubov <bzz@apache.org>
    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    7bac87f View commit details
    Browse the repository at this point in the history
  4. refactoring: PyUast->PyContext for consistency

    Signed-off-by: Alexander Bezzubov <bzz@apache.org>
    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    8b84e4a View commit details
    Browse the repository at this point in the history
  5. refactoring: fix comments + fmt after rebase

    Signed-off-by: Alexander Bezzubov <bzz@apache.org>
    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    1fa1d0d View commit details
    Browse the repository at this point in the history
  6. apply review feedback

    bzz authored and dennwc committed Oct 17, 2018
    Copy the full SHA
    9e88733 View commit details
    Browse the repository at this point in the history
  7. fix replace

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 17, 2018
    Copy the full SHA
    98b3ef8 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2018

  1. Build fixes, comment out v1 things, some other adjustements

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 18, 2018
    Copy the full SHA
    96abf64 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2018

  1. Recover grpc sdk v1 protocol for some grpc objects

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 22, 2018
    Copy the full SHA
    151e61c View commit details
    Browse the repository at this point in the history
  2. Forward port the aliases refactor by Vadim

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 22, 2018
    Copy the full SHA
    7f583ea View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2018

  1. Forward port travis changes

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 24, 2018
    Copy the full SHA
    6ba57fc View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into v3

    juanjux committed Oct 24, 2018
    Copy the full SHA
    24fd7b6 View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2018

  1. fix pip install

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 30, 2018
    Copy the full SHA
    a2ca471 View commit details
    Browse the repository at this point in the history
  2. update the client to use both protocols

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Oct 30, 2018
    Copy the full SHA
    e308038 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2018

  1. Remove unused and broken import

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 31, 2018
    Copy the full SHA
    0d675e1 View commit details
    Browse the repository at this point in the history
  2. Compile the ext module from an static libuast object

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Oct 31, 2018
    Copy the full SHA
    91b798b View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2018

  1. enable building the client with static libuast

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Nov 1, 2018
    Copy the full SHA
    acec219 View commit details
    Browse the repository at this point in the history
  2. do not free the query string in filter, it seems to be borrowed

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Nov 1, 2018
    Copy the full SHA
    2fd570c View commit details
    Browse the repository at this point in the history
  3. improve the native Python wrappers and update the readme

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Nov 1, 2018
    Copy the full SHA
    d05770c View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2018

  1. fix error handling in native extension

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Nov 2, 2018
    Copy the full SHA
    272acc9 View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2018

  1. Explicit cast to char* to avoid nasty warning with latest G++

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 8, 2018
    Copy the full SHA
    270445b View commit details
    Browse the repository at this point in the history
  2. PEP8

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 8, 2018
    Copy the full SHA
    1f977e4 View commit details
    Browse the repository at this point in the history
  3. Renamed PyContext to PythonContext to avoid symbol conflict in 3.7+

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 8, 2018
    Copy the full SHA
    20890e0 View commit details
    Browse the repository at this point in the history
  4. Use same name for Windows an Linux static lib before the extension

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 8, 2018
    Copy the full SHA
    2c983a9 View commit details
    Browse the repository at this point in the history
  5. Add several needed static libs for Windows

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 8, 2018
    Copy the full SHA
    0bcf223 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2018

  1. Several improvements (see desc)

    - Added static typing.
    - Fixed some bugs and potential bugs found after adding typing.
    - Removed the unnused and eval-dangeous mapn cli argument.
    - Updated run_query so the CLI should work again with queries.
    - Reworked & simplified `launcher.py` exception handling logic.
    - PEP8 formatting.
    - Removed some vestigial, unneded and ugly code manipulating the import path.
    - Ensure the `build/` directory is deleted on `setup.py --clean`.
    
    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 15, 2018
    Copy the full SHA
    8401a1c View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2018

  1. Several Improvements (II)

    - Wrap the extension module values (results, iterator, item) into Python classes
      with support for automatic calls to `load()` on str serializing and methods to ensure
      a query result is of a specific type.
    
    - Extension module: export the types returned too (needed for correctly
      typing): NodeExt, IteratorExt and Context.
    
    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 16, 2018
    Copy the full SHA
    bd8c2d5 View commit details
    Browse the repository at this point in the history
  2. Make iterators great (and working) again

    Wraps the internal iterator function from the extension module into methods
    for ResultContext, NodeIterator and Node objects (same objects added in the
    previous commit, renamed).
    
    Update README. Please see examples for specific usage.
    
    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Nov 16, 2018
    Copy the full SHA
    f964c46 View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2018

  1. fix usage of parsed string arguments in filter

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Dec 5, 2018
    Copy the full SHA
    ea7d615 View commit details
    Browse the repository at this point in the history
  2. properly deallocate python objects

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Dec 5, 2018
    Copy the full SHA
    1c73766 View commit details
    Browse the repository at this point in the history
  3. free encoding buffer

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Dec 5, 2018
    Copy the full SHA
    7cb563a View commit details
    Browse the repository at this point in the history
  4. bump versions

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Dec 5, 2018
    Copy the full SHA
    cd1d90d View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2018

  1. Unittests and other fixes

    Add test file
    
    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 11, 2018
    Copy the full SHA
    a55abc4 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into v3

    juanjux committed Dec 11, 2018
    Copy the full SHA
    d74a514 View commit details
    Browse the repository at this point in the history
  3. Uncommented failed test

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 11, 2018
    Copy the full SHA
    75170a6 View commit details
    Browse the repository at this point in the history
  4. Enabled unnitesting in travis

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 11, 2018
    Copy the full SHA
    c4fd5be View commit details
    Browse the repository at this point in the history
  5. Run docker and install python driver from travis

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 11, 2018
    Copy the full SHA
    753efb4 View commit details
    Browse the repository at this point in the history

Commits on Dec 12, 2018

  1. Commented out the node afected by SDK issue 340

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 12, 2018
    Copy the full SHA
    9876503 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'master' into v3

    juanjux committed Dec 12, 2018
    Copy the full SHA
    7098328 View commit details
    Browse the repository at this point in the history
  3. Remove Python 3.5 from Travis

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 12, 2018
    Copy the full SHA
    7ad8c6f View commit details
    Browse the repository at this point in the history
  4. Use range for grpcio and grpciotools

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 12, 2018
    Copy the full SHA
    a2752b7 View commit details
    Browse the repository at this point in the history
  5. Fixed some of @bzz feedback from review

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 12, 2018
    Copy the full SHA
    a99f5be View commit details
    Browse the repository at this point in the history

Commits on Dec 13, 2018

  1. add error checks for iterators and clarify comments

    Signed-off-by: Denys Smirnov <denys@sourced.tech>
    Denys Smirnov committed Dec 13, 2018
    Copy the full SHA
    b983ea2 View commit details
    Browse the repository at this point in the history

Commits on Dec 18, 2018

  1. Fixed from @zurk review (thanks!)

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 18, 2018
    Copy the full SHA
    9e3f415 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    988eb5e View commit details
    Browse the repository at this point in the history
  3. Merge branch 'master' into v3

    juanjux committed Dec 18, 2018
    Copy the full SHA
    ba93944 View commit details
    Browse the repository at this point in the history
  4. Fixes and improvements from @vmarkovtsev review

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 18, 2018
    Copy the full SHA
    d485273 View commit details
    Browse the repository at this point in the history
  5. PEP8 fix

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 18, 2018
    Copy the full SHA
    66ccfed View commit details
    Browse the repository at this point in the history
  6. Changed ModeDict to a Modes enum-like class

    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 18, 2018
    Copy the full SHA
    a020666 View commit details
    Browse the repository at this point in the history
  7. Allow to create Clients with an instanced grpc channel as suggested b…

    …y Vadim
    
    Signed-off-by: Juanjo Alvarez <juanjo@sourced.tech>
    Juanjo Alvarez committed Dec 18, 2018
    Copy the full SHA
    9b094aa View commit details
    Browse the repository at this point in the history