Commit Graph
138 Commits
Author SHA1 Message Date
Riccardo Schirone 94a394a9c7 Fix python name in metadata 2021-01-21 11:49:22 +01:00
Anton Kochkov 7df231a3df Use setuptools for Python 2021-01-20 13:18:37 +08:00
Riccardo Schirone b97276312b Use rz_core not r_core 2020-12-22 11:15:07 +01:00
Anton Kochkov f11f0e94d0 Rzpipe Python cleanup 2020-12-09 17:57:17 +08:00
Anton Kochkov bf57828bc3 Rzpipe Python fixes 2020-12-09 17:38:08 +08:00
Giovanni c79e6031a2 Updated example 2020-12-08 20:17:53 +01:00
Florian Märkl 5e8563a98a Update Windows RZ_PIPE_PATH env var 2020-11-02 18:07:35 +01:00
Florian Märkl c0f29e9f3c Use R2PIPE_* -> RZ_PIPE_* env vars 2020-10-01 18:06:56 +02:00
Riccardo Schirone c63059a239 Rename r2pipe -> rzpipe and radare2 -> rizin (#1) 2020-10-01 12:11:48 +02:00
Khairul Azhar Kasmiran 3bb31f5635 Windows r2pipe.py: Don't chop off last char if it's not 0 (#118) 2020-06-29 13:02:23 +02:00
Khairul Azhar Kasmiran 5a495ba76d Fix Windows Python 3 #!pipe 2020-06-24 18:29:20 +08:00
Anton Kochkov 1a9986d82f Fix LGTM and flake8 warnings 2020-05-25 15:40:48 +08:00
Anton Kochkov 65987c58ee Reformat code with black 2020-05-25 15:08:45 +08:00
Anton Kochkov 886860dc51 Python 3 compatibility, drop Python 2 2020-05-25 15:07:56 +08:00
haystack b56063b423 More precise filename parsing in python module. Closes #114.
Previously, python module would check if filename started with "tcp"
or "http." This would cause weird edge cases where a relative path
starting with a directory called "tcp" or "http" would cause an
exception to be thrown. This checks for filenames that start with
"tcp://" or "http://" instead, which *might* still cause the same
issue but is less likely.
2020-05-06 10:46:42 -04:00
pancake 1394b51d6a Release r2pipe-1.4.2 for python 2019-10-23 12:18:05 +02:00
Anton Kochkov c13da476af Merge pull request #107 from R2S4X/fix_unclosed_file
Fix issue with unclosed file descriptors
2019-10-21 01:48:10 +08:00
R2S4X 452cb102f3 Fix issue with unclosed file descriptors 2019-10-20 17:08:54 +03:00
Maijin 9cc51fb013 Rename README.rst to README.md
Change back to .md which is accepted by pypi - https://packaging.python.org/guides/making-a-pypi-friendly-readme/#creating-a-readme-file
2019-07-28 22:54:30 +02:00
pancake 96f5ae7527 Bump r2pipe.py 1.4.1 removing the reference to the readme 2019-06-20 11:44:48 +02:00
pancake 1fac0a0b16 Use rst, not md 2019-06-20 02:31:33 +02:00
pancake 6f989f4c28 Release r2pipe.py 1.4.0 2019-06-20 02:28:57 +02:00
pancake 2b31936766 Add r2pipe.py cmdJ() to return a Python object instead of a JSON one 2019-05-14 12:15:26 +02:00
a1ext 3becb78c72 Merge pull request #89 from meiraxx/master
fixes #88: small update open_sync.py (remove utf-8 decodes)
2019-04-26 13:41:17 +03:00
William Setzer a794acf68d Update open_base.py to import Popen and PIPE
Popen and PIPE are used in the file, but never imported.

Changed imports to reflect use.
2019-04-16 00:05:59 +02:00
João Meira 056839f0cb small update open_sync.py (remove utf-8 decodes)
Hi guys! Please remove this decode as sometimes the output isn't utf8-decodeable.
https://user-images.githubusercontent.com/25626434/50499947-95937180-0a45-11e9-9607-2087a7aa73ad.png
2018-12-28 16:42:59 +00:00
pancake 4fde65cacd Release r2pipe.py 1.2.0 2018-12-17 12:32:26 +01:00
a1ext ae19becda2 Fixes #85: bug with empty filename argument handling has been fixed 2018-12-13 01:04:44 +01:00
a1ext d955eb205d Python2/Python3 are now use synchronous interaction.
Fixed some compatibility issues
2018-12-06 14:00:36 +01:00
a1ext d63036e411 fixed radare/radare2-r2pipe#81, radare/radare2-r2pipe#82, radare/radare2-r2pipe#83
Introduced `radare2home` argument to `r2pipe.open`
2018-12-06 14:00:36 +01:00
a1ext 2e4348ac9d Fixed #81: fcntl module is unavailable on Windows (related to synchronous interaction) 2018-12-06 14:00:36 +01:00
pancake c27fb13146 Simplify test target 2018-12-04 21:54:52 +01:00
pancake aa4feaeddb Split py2 and py3 tests 2018-12-04 21:53:44 +01:00
pancake f72cd3a2e6 Fix tests 2018-12-04 21:52:22 +01:00
pancake 5746b7ddf6 Improved tests for r2pipe.py 2018-12-04 16:45:51 +01:00
pancake 73856fb97a Fix https in setup.py 2018-11-25 23:26:18 +01:00
pancake 727f85b7d1 Release r2pipe.py-1.0 2018-11-25 23:19:03 +01:00
Skia 42abc23e60 Change r2 to radare2, since meson doesn't make r2 (#72) 2018-09-18 23:14:37 +02:00
Iru Cai (vimacs) 6a1bb1943f Fixes for py3 (#68)
* fix when using r2pipe.open()
* fix using r2pipe with python3
2018-08-17 17:41:56 +02:00
bannsec 38d3a1c219 Bad doc (#66)
Wasted quite a while trying to figure out why r2 wasn't working through r2pipe. Turns out the documentation here told people to do something that wouldn't work.
2018-07-29 08:33:37 +01:00
idanw206 0358388d3c Now MANIFEST.in includes itself (#59) 2018-04-28 22:20:18 +02:00
pancake 7a8055d1f4 Fix syntax for r2pipe.py 2018-03-23 12:22:59 +01:00
Releev abd79b5144 Some work done on merging python and python-async libs. 2018-03-19 15:58:04 +01:00
pancake 560b81d82f Release r2pipe.py 0.9.9 fix native import issue 2018-03-05 12:29:09 +01:00
Siarhei Siniak 04cdcd6b99 Refactor syntax
1. Make python3 compatible and remove redundant e declaration;

  2. Ignore __pycache__.
2018-03-05 09:34:24 +01:00
pancake 9b19aa732f Release r2pipe.py 0.9.9 fix native import issue 2018-02-27 12:59:31 +01:00
pancake 9f72450812 Release r2pipe-0.9.8 2018-02-05 01:46:59 +01:00
pancake 655f119fba Release r2pipe-0.9.7 2018-02-05 01:46:54 +01:00
Andrea Fioraldi cd8ee696a6 python: added error handling where r_core library is not in path
In windows, when r_core is not accesible (ex. not in path) the installation fails because setup.py try to imports r2pipe and it generate the following execption:

  Using cached r2pipe-0.9.8.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "c:\users\$USER\appdata\local\temp\pip-build-f8_abq\r2pipe\setup.py", line 2, in <module>
        import r2pipe
      File "r2pipe\__init__.py", line 45, in <module>
        from .native import RCore
      File "r2pipe\native.py", line 9, in <module>
        lib = WinDLL(find_library('r_core'))
      File "C:\Python27\Lib\ctypes\__init__.py", line 365, in __init__
        self._handle = _dlopen(self._name, mode)
    TypeError: expected string or Unicode object, NoneType found

This is caused by find_library('r_core') that return None.
2018-02-01 16:20:03 +01:00
Krzysztof Korościk 6adbd5dd57 catch proper exiception for import errors instead of all possible ones 2017-12-28 14:34:29 +01:00