Commit Graph

574 Commits

Author SHA1 Message Date
Calum Lind 4492cada4a Backport time_point to python convertor. Fix bindings returning invalid date from time_point convertor 2017-02-11 08:07:43 -05:00
Calum Lind de30f357b3 Add missing announce_entry properties to python bindings
Fix and refactor the announce_entry class
 - Removed verified from torrent_handle dict to announce_entry as it's read-only.
 - Changed source and send_stats to read_write properties.
 - Switched trivial type properties to using read_only or read_write.
2017-02-11 08:07:43 -05:00
arvidn 7ff4f56ae2 add function to get default settings 2017-02-05 11:31:43 -05:00
arvidn 62db98ca09 add missing min_memory_usage() and high_performance_seed() settings presets to python 2017-01-24 01:34:05 -05:00
arvidn 27001750a4 add python binding for generate_fingerprint 2017-01-16 14:27:02 -05:00
Calum Lind de499310f5 [#1217] Fix RuntimeWarning registering pointer with Python
This fix checks for existing registered pointers for alert so that Boost
does not output the following warning when importing libtorrent in Python:

> RuntimeWarning: to-Python converter for boost::shared_ptrlibtorrent::alert already registered; second conversion method ignored.
2017-01-14 22:41:38 -05:00
arvidn febcbbf17c fix make_torrent.py to not use deprecated functions 2017-01-14 16:04:01 -05:00
arvidn eb5b0e9897 fix another c++98 issue 2016-12-24 11:27:58 -08:00
arvidn fa7846d1fd fix c++98 build 2016-12-24 08:40:49 -08:00
Arvid Norberg a6de426d1e add file_status to python binding (#1448)
add more missing functions to python bindings
2016-12-23 13:57:10 -08:00
arvidn 820fd29bff add missing session stats functions to python bindings 2016-12-23 06:06:44 -05:00
arvidn a39f3714b2 fix python build with CC/CXX environment 2016-12-08 18:39:43 -05:00
arvidn 864fcfaced initialize piece priorities to 4 2016-12-04 18:36:45 -05:00
AllSeeingEyeTolledEweSew 3abecd2546 Cast cached_piece_info::kind to int. 2016-11-26 11:06:49 -05:00
AllSeeingEyeTolledEweSew c5f1c07a87 Bind cache_status::pieces. (#1323)
expose cache_status::pieces in python binding
2016-11-22 18:38:45 -05:00
Arvid Norberg a7dcdf30ef cleanup and fixes to python bindings (#1317) 2016-11-13 20:52:56 -05:00
arvidn ab6940d560 back-port python binding patch to expose cache_flushed_alert 2016-11-11 01:06:23 -05:00
arvidn 19a5d9f989 add proxy_type_t to python binding 2016-11-05 11:37:14 -04:00
arvidn 2d1ce777f5 fix python exception 2016-11-03 22:30:48 -04:00
Arvid Norberg 11856d64e9 treat an unknown key in a settings_pack as an error in python (#1287) 2016-11-03 01:01:48 -04:00
arvidn c1fbd31bf1 make deprecation ifdefs more uniform 2016-11-02 23:40:48 -04:00
Arvid Norberg 4ba0151cb9 documentation fixes (#1274) 2016-10-29 22:56:46 -04:00
Arvid Norberg 61af222d92 add utility function for generating peer ID fingerprint (#1249)
add utility function for generating peer ID fingerprint
2016-10-25 08:03:26 -04:00
arvidn 344eedb969 add python scrape_tracker test 2016-10-15 21:29:01 -04:00
Arvid Norberg 7a52a285a1 back-port error_code cleanup from master (#1173)
back-port error_code cleanup from master
2016-10-03 16:32:40 -07:00
minus ab846d2d31 fixed python scrape_tracker arguments (#1160) 2016-09-27 23:22:06 -04:00
Arvid Norberg 80e5ce9b32 add a default DHT bootstrap node when it's enabled on session startup (#1008)
make the dht bootstrap nodes part of settings_pack instead, to make it possible to set them on startup. and add default
2016-08-21 12:15:19 -04:00
arvidn e247473b86 bump version number 2016-08-13 07:12:23 -04:00
Arvid Norberg 1229491e5e back-port python3 fix 2016-08-10 07:28:13 -04:00
Calum Lind 6c0f4cc082 Fix reoccurrence of py bindings -Wstrict-prototype warning (#959)
* Recent commit df368c2d15 has allowed the -Wstrict-prototype flag to
once again be passed to gcc so this fix removes all occurrences not just from 'OPT'.
2016-07-27 19:19:24 -04:00
Arvid Norberg 69f82c5274 add support for entry::preformatted to python binding (#952) 2016-07-27 00:15:26 -04:00
Arvid Norberg 6370d5bc81 deprecate lt_trackers extension (#940)
deprecate lt_trackers extension
2016-07-24 23:37:03 -04:00
Arvid Norberg f05fad0d41 remove load_asnum_db and load_country_db from python bindings (#930) 2016-07-21 18:10:29 -07:00
arvidn c0d7650926 add default argument to python binding for post_torrent_updates 2016-07-16 19:23:23 -07:00
Arvid Norberg eeb91cb803 Reduce appveyor builds 1.1 (#883)
reduce the number of times libtorrent is built on appveyor and travis
2016-07-05 11:25:31 -04:00
arvidn 42c6376d5c another python binding fix 2016-06-14 20:16:04 -04:00
arvidn f01ac8f86c fix announce_entry python binding 2016-06-14 20:10:18 -04:00
Arvid Norberg 80710abcbf fix python dictionary to settings_pack conversion bug (#652) 2016-04-27 12:28:22 -04:00
Alden Torres 0fddd403b2 Better api for peers() method in dht_get_peers_reply_alert (#628) 2016-04-19 16:16:51 -04:00
Steven Siloti e4fd45e109 fix the fix for python binding backwards compat
f409a5ab caused session.settings to return a setting pack dict rather than the
1.0 compatibile session_settings class.
2016-04-16 13:03:54 -07:00
arvidn 249dff6014 make dht_get_peers_reply_alert::peers a function in python binding 2016-04-15 00:53:02 -04:00
Alden Torres 4292cfbf04 Missing alert categories and support for dht_get_peers_reply_alert in python binding 2016-04-11 14:20:50 -04:00
arvidn 5c17dc9f31 fix some build warnings in python binding 2016-04-07 22:45:23 -04:00
arvidn a9952a38cf fix python test 2016-04-07 02:23:21 -04:00
arvidn b8fec119da add test to make sure the file_storage object is iterable in the python bindings 2016-04-07 00:09:02 -04:00
Arvid Norberg e17409f996 Merge pull request #585 from arvidn/python-cleanup-1.1
cleanup python binding for torrent_handle::prioritize_pieces
2016-04-04 17:30:44 -04:00
Arvid Norberg d0edcaf632 Merge pull request #584 from arvidn/python-sharedptr-1.1
fix python GIL issue
2016-04-04 17:29:45 -04:00
arvidn f409a5abf3 fix backwards compatibility of python binding for set_settings 2016-04-04 00:52:21 -04:00
arvidn a410363f11 cleanup python binding for torrent_handle::prioritize_pieces. github.com/arvidn/libtorrent/issues/573 2016-04-04 00:22:01 -04:00
arvidn 90efec5d19 fix python GIL issue when passing in a torrent_info object that later gets destroyed from within libtorrent 2016-04-03 23:50:06 -04:00
arvidn 398014778e add test for second overload of prioritize_pieces to python test 2016-04-02 15:52:37 -04:00
arvidn 0076baee81 apply lawnmowerwcd's python binding fix for converting python list to std::vector 2016-04-02 02:29:24 -04:00
arvidn 296c6c24c4 fix python3 binding for read_piece::buffer 2016-04-01 17:55:15 -04:00
arvidn f1c3ecd067 fix metadata() and hash_for_piece() in python3 binding 2016-03-31 00:19:23 -04:00
arvidn 7f232dd195 fix python3 issue in binding 2016-03-30 23:35:47 -04:00
arvidn e8693465a5 remove more references to compact storage allocation 2016-03-20 19:14:46 -04:00
arvidn f5c112eefc remove remaining references to storage_mode_compact (since it's been deprecated for quite a while now, and no longer implemented) 2016-03-20 18:25:24 -04:00
arvidn f7c9062019 deprecate more parts of explicit cache as well as fixing typos of TORRENT_NO_DEPRECATE preprocessor tests 2016-03-19 07:54:29 -04:00
arvidn 85f615132b fix documentation mentions of session_settings to refer to settings_pack. clean out some outdated disk instrumentation docs 2016-03-18 16:40:52 -04:00
arvidn 1cd5119178 remove/deprecate bad idea with mlock 2016-03-17 19:37:05 -04:00
arvidn 442979c318 support filtering which parts of session state are loaded by load_state() 2016-03-06 16:35:49 -05:00
arvidn 12dce2ccdb forward port python binding test for torrent_status::save_path 2016-02-27 20:57:06 -05:00
Steven Siloti df368c2d15 more robust flags parsing in python bindings
The flags supplied by libraries cannot be relied upon to be sane so
they all must be run through a parser to make sure search paths are
specified in the correct order.
2016-02-15 15:19:37 -08:00
arvidn 87c31bec25 revert remaining left-over from deprecating listen_failed_alert::endpoint 2016-02-10 18:20:17 -05:00
arvidn be44f9dd50 forward port python binding fix from RC_1_0 2016-02-08 22:14:08 -05:00
arvidn acd929381e restore the endpoint field in listen_failed_alert (but deprecated) and add a port field 2016-01-31 10:20:10 -05:00
arvidn 190fb4cfa9 attempt to fix python bindings on windows 2016-01-14 02:26:36 -05:00
Andrew Resch a375317158 Remove unused include 2016-01-13 17:36:59 -08:00
Andrew Resch bcef173270 Add unittest for post_session_stats() 2016-01-13 17:35:54 -08:00
Andrew Resch 2e90ea7493 Add session_stats_alert to python bindings 2016-01-13 17:30:51 -08:00
Andrew Resch 6552138ae5 Add session.post_session_stats() to python bindings 2016-01-11 22:52:10 -08:00
Andrew Resch fc72c41556 Fix error with no converter for boost::shared_ptr<libtorrent::alert> 2016-01-10 19:57:20 -08:00
Andrew Resch a0770a087a Fix python 3 compatibility 2016-01-10 19:53:54 -08:00
arvidn ed09a6a01d use datetime type for time_duration in python binding 2016-01-07 17:47:53 -05:00
arvidn f44fb4c660 extend python binding unit test and fix bugs in it 2016-01-06 00:17:51 -05:00
arvidn 49b24d4cd0 fix python bindings 2016-01-05 01:32:04 -05:00
arvidn a0678240f3 forward port fixes from RC_1_0 2016-01-03 23:34:57 -05:00
arvidn d9278c3da4 merge RC_1_0 fix for python binding 2016-01-02 22:56:19 -05:00
arvidn 645b121df6 deprecate resolve-countries 2015-12-14 21:32:30 -05:00
Arvid Norberg 3516e53fa2 Merge pull request #329 from arvidn/warnings-fix
mark up some override functions and fix other clang warnings
2015-12-13 22:12:52 -05:00
arvidn 505ae508f4 mark up some override functions and fix other clang warnings 2015-12-13 19:44:42 -05:00
arvidn 1e6021f71e deprecate set_tracker_login in python binding 2015-12-13 16:25:05 -05:00
arvidn 87b64f083a fix python build 2015-11-29 11:12:58 -05:00
Calum Lind 9c3193c9c1 [Bindings/Python] Silence '-Wstrict-prototypes' warnings
* Fixes #277
   * This commit removes -Wstrict-prototypes configure option from 'OPT' envvar
     that is added by distutils from reading /usr/lib/pythonX.Y/config/Makefile.
2015-11-21 14:04:27 +00:00
arvidn 4aaa8ca4a9 silence msvc performance warnings. introduce more override and finals 2015-11-19 23:37:45 -05:00
Arvid Norberg aa30d64432 Merge pull request #255 from bit/mutable_python
fix mutable dht entries in python bindings
2015-11-12 20:23:28 -05:00
arvidn 4c0b00c390 forward-port version function from RC_1_0 2015-11-11 00:57:51 -05:00
j a16b8f374b python bindings: fix dht_put/get_mutable_item
- accept strings for public/private keys,
  its not possible to pass boost::arrarys
- sign data passed to dht_put_mutalbe_item
2015-11-09 04:49:49 +01:00
j d36122f252 expose dht put/get data in alerts 2015-11-08 19:06:07 +01:00
arvidn ebb9fdaf54 add error_code to torrent_status instead of error string 2015-11-05 20:43:23 -05:00
Jakob Petsovits fc5ed962a8 Fix outdated C bindings code so it at least can build again. 2015-11-02 11:09:01 -05:00
Andrew Resch e8efc8fd00 Add a test for sha1_hash 2015-10-09 18:21:04 -07:00
Andrew Resch 95be0137d5 Change sha1_hash __init__ to use a std::string
This fixes compatibility with Python 3's bytes object.
2015-10-08 23:08:12 -07:00
arvidn 51c6079c42 add stop-when-ready feature, to support checking torrents without starting the download afterwards 2015-10-04 13:08:23 -04:00
Calum Lind 11a4be737d [Bindings/Py] Add missing move_flags_t to torrent_handle 2015-10-01 10:35:42 +01:00
arvidn a00e5aa6c7 forward port patch to have resume data web seeds override .torrent file web seeds, and a flag to merge them 2015-09-30 00:41:41 -04:00
arvidn a9821216bf revert py_libtorrent renaming for python binding 2015-09-24 05:19:29 -07:00
Thomas Yuan 7fec9e488d make immutable/mutable items lifetime configurable. 2015-09-21 20:32:37 -04:00
arvidn 372385bcb8 expose more of torrent_status in python binding 2015-09-19 14:39:36 -04:00
arvidn b628692223 separate out announce_entry and torrent_status into their own headers 2015-09-18 08:08:08 -04:00