Arvid Norberg
27401c9f44
add high_priority flag to tracker announcements, to put them at the front of the queue. This can be done manually in force_reannounce() or will happen automatically as part of connection-boost
2025-12-29 02:01:22 +01:00
arvidn
60b09be37e
fix python binding for notify_callback to hold the GIL when destructing
2025-12-27 22:18:01 +01:00
xavier2k6
bb00170ea2
Python bindings: Revise supported python versions
...
* Drop support for Python <3.9 (EOL)
* Add Python 3.12 & 3.13 support
* Updated URL for "supported python versions"
* Remove PyEval_InitThreads() call for Python 3.7 and later as Python calls it automatically now.
This removes a deprecation warning when using Python 3.9.
https://docs.python.org/3/c-api/init.html#c.PyEval_InitThreads
2025-05-11 09:25:49 +02:00
Arvid Norberg
21cbbf74ee
support find_torrent() for v2 torrents
2025-03-30 14:18:06 +02:00
xavier2k6
5ba1f46ae1
Fix typos
2025-01-24 20:06:54 +01:00
xavier2k6
790b6629f6
Fix some typos
2024-09-29 14:13:46 +02:00
Radu Carpa
5ce4c51647
add ssl_listen_port to python bindings
2023-09-14 10:54:47 +02:00
Radu Carpa
29b6dce8e1
add set_ssl_certificate_buffer to python bindings
2023-09-14 10:54:47 +02:00
arvidn
7208996832
rely on RVO in C++20
2023-08-26 01:20:45 +02:00
arvidn
13009ef066
add python binding
2023-08-24 14:36:15 +02:00
luzpaz
63373cf012
Fixes various typos
...
Found via `codespell -q 3 -S "*.pem,*.torrent,./docs/hunspell,./src/puff.cpp" -L bu,fo,folx,ihs,ot,readd,requestor,te`
2023-08-24 07:52:41 +02:00
arvidn
73089332ab
fix missing python converter for dht::announce_flags_t
2023-05-27 09:18:23 +02:00
arvidn
6a10f62743
add python binding for peer_info::i2p_destination
2023-04-10 13:19:19 +02:00
arvidn
116b3739f0
separate only_if_modified flag to save_resume_data
2023-03-18 16:17:46 +01:00
Jigen
02884d367b
i2p_socket flag ( #7301 )
...
* i2p_socket flag
Make i2p_socket flag available to python.
Use case: Python clients can use it to distinguish i2p peers from regular ones.
2023-02-12 10:23:29 +01:00
arvidn
4629245993
remove residual code from supporting builds without exceptions
2023-02-01 13:45:54 +01:00
arvidn
c5be3bd998
fix python bindings to not trigger asserts, but add run-time checks
2023-01-21 16:00:19 +01:00
arvidn
e1bd11b916
add missing python bindings for async torrent_handle operations
2023-01-03 02:29:16 +01:00
arvidn
758c1037ee
add async piece availibility query, post_piece_availibility()
2022-12-11 01:54:44 +01:00
arvidn
5915790721
add async download queue query, post_download_queue()
2022-12-11 01:54:44 +01:00
arvidn
c251ec90f7
add async file_progress query, post_file_progress()
2022-12-11 01:54:44 +01:00
arvidn
034ac8362a
add async peer_info query, post_peer_info()
2022-12-11 01:54:44 +01:00
arvidn
a11a6479cc
merged RC_1_2 into RC_2_0
2022-10-16 16:37:29 +02:00
arvidn
db7002e4ef
add write_torrent_file_buf() overload for generating .torrent files
2022-09-30 23:41:54 +02:00
arvidn
9c4d073413
python binding for generate_buf()
2022-09-30 20:54:08 +02:00
arvidn
e4de026c9a
expose mmapped file_open_mode flag
2022-09-21 01:25:48 +02:00
arvidn
74d82a0cd7
tweak pad file placement to match reference implementation (tail-padding)
2022-09-15 13:01:59 +02:00
AllSeeingEyeTolledEweSew
67f0b06bb4
bump boost versions and windows-* runner for cibuildwheel
2022-09-14 20:14:31 +02:00
arvidn
5ad22f9674
introduce setting for using pwrite in mmap_disk_storage
2022-09-05 18:10:41 +02:00
arvidn
13fd38fc32
add torrent_flag to default all file priorities to dont_download
2022-08-24 09:44:47 +02:00
arvidn
56c1b4a776
extend write_torrent_file() with a flags parameter. Don't include DHT nodes by default
2022-06-22 18:45:14 +02:00
arvidn
15c84eaa54
add torrent_conflict_alert
2022-06-18 22:17:51 +02:00
arvidn
e3a00498d4
python binding
2022-06-15 13:06:53 +02:00
arvidn
34c75eb5f3
add new overload to make_magnet_uri that takes an add_torrent_params
2022-05-27 09:11:42 +02:00
arvidn
3eb2fd7fb9
add missing protocol version to tracker_reply_alert and tracker_error_alert
2022-05-26 11:24:02 +02:00
arvidn
fceabcc26a
use the async overload of add_piece() in python binding
2022-05-25 23:48:42 +02:00
arvidn
ebc246760b
fix python binding for peer_info::connection_type
2022-02-28 12:26:57 +01:00
arvidn
a45ead24b2
add write_through option to disk_io_write_mode, which will attempt to flush pieces to disk once they're validated (with msync). Also make disable_os_cache also flush write blocks and mark all cache blocks as cold
2022-02-17 12:16:11 +01:00
arvidn
1c3ce6a456
merged RC_1_2 into RC_2_0
2022-02-07 00:14:54 +01:00
arvidn
6cb94424ad
fix python binding for settings_pack conversion
2022-02-05 14:40:57 +01:00
arvidn
9303f5c0f3
add flag to make add_files() not record file attributes
2022-02-04 22:58:18 +01:00
arvidn
1a1a80c8d8
merged RC_1_2 into RC_2_0
2021-11-22 02:05:47 +01:00
arvidn
4ad4e8e0a8
fix missing include in python binding, torrent_info
2021-11-15 16:51:07 +01:00
AllSeeingEyeTolledEweSew
0facda852e
Explicitly cast Extract'ed strings
2021-11-08 23:46:44 +01:00
AllSeeingEyeTolledEweSew
7e1c99051e
Backport 2f9ed031d (disable deprecated boost.asio APIs)
2021-11-08 23:46:44 +01:00
Sam James
2ecdbf766d
Add missing include for get_ssl_category
...
error::get_ssl_category is defined in boost/asio/ssl/error.hpp, so
include it when we're building with SSL support.
Fixes build failures like:
```
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.0.4-r5/work/libtorrent-rasterbar-2.0.4/bindings/python/src/error_code.cpp: In static member function 'static void {anonymous}::ec_pickle_suite::setstate(libtorrent::error_code&, boost::python::tuple)':
/var/tmp/portage/net-libs/libtorrent-rasterbar-2.0.4-r5/work/libtorrent-rasterbar-2.0.4/bindings/python/src/error_code.cpp:112:70: error: 'get_ssl_category' is not a member of 'boost::asio::error'; did you mean 'get_misc_category'?
112 | ec.assign(value, boost::asio::error::get_ssl_category());
| ^~~~~~~~~~~~~~~~
| get_misc_category
```
Bug: https://bugs.gentoo.org/820836
2021-11-01 06:04:30 +01:00
AllSeeingEyeTolledEweSew
eb4bbfd49c
Backport 634497af0 (the session constructor taking a settings_pack directly was deprecated...)
2021-10-25 02:32:07 +02:00
AllSeeingEyeTolledEweSew
ebd148129d
Backport d5b27eeac (move session flags into the session_params object)
2021-10-25 02:32:07 +02:00
AllSeeingEyeTolledEweSew
acf5f9220e
Backport 079f2b6a1 (fix warning in python bindings)
2021-10-25 02:32:07 +02:00
AllSeeingEyeTolledEweSew
b03c35df54
Backport 281844ccb (fix class -> struct issue in python bindings)
2021-10-25 02:32:07 +02:00