Commit Graph

25 Commits

Author SHA1 Message Date
Noa
725dac204f Fix redox 2023-03-18 21:17:23 -05:00
Jeong YunWon
8a223b8178 Fix unix localeconv to refer libc and additional clean up 2023-03-13 23:19:52 +09:00
minh.pham2000
19193cd2a4 Add locale implementation for windows 2023-03-13 23:19:52 +09:00
John Pham
af1d46f184 Add _locale module (#4558)
_locale.localeconv and _locale.setlocale

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2023-03-01 05:37:52 +09:00
Steve Shi
765933136c Implement Sqlite3 Module (#4260)
* add supporting for PyAtomic<PyObject>

* create sqlite module

* add dependency sqlite3-sys

* add module constants

* import sqlite3 from cpython

* adjust lib

* add module structure

* impl Connection.cursor

* add module exceptions

* impl lstrip_sql

* impl statement new

* wip cursor.execute

* wip cursor

* wip error to exception

* add SqliteRaw and SqliteStatementRaw

* impl statement parameters binding

* wip cursor.execute

* add test_sqlite

* impl closeable connection

* impl closeable cursor

* impl cursor.executemany

* impl cursor.executescript

* impl cursor.fetch*

* impl connection.backup

* stage 1

* add support connection.backup with progress

* fix backup deadlock

* support changable isolation_level

* impl converter

* impl adapter

* impl text_factory and blob

* impl create_function

* impl create_function 2

* fix empty statement

* impl blob support

* impl create_aggregate

* impl create_aggregate 2

* refactor create_*

* impl enable_callback_traceback

* impl create_collation

* refactor create_* with CallbackData

* fix text and blob use SQLITE_TRANSIENT

* fix str to SQLITE_TEXT

* impl thread check

* impl Connection Factory

* impl busy timeout

* shift sqlite3-sys -> libsqlite3-sys

* refactor CallbackData

* impl create_window_function

* refactor callback functions

* add module attr converters

* fix nullable isolation_level

* add module attr adapters

* fix nullable adapt proto

* impl set_authorizer

* impl trace_callback

* impl set_progress_handler

* impl cancellable sqlite function*

* impl attributes for Connection

* fix some failed tests

* impl Row

* impl Blob methods

* impl Blob subscript & ass_subscript

* pass tests

* rebase

* no sqlite for wasm

* use ThreadId instead u64

* no libsqlite3-sys for wasm

* fix into_cstring for all platform

* fixup

* rebase

* fix windows into_bytes

* disable sqlite for android

* fixup
2023-01-07 22:03:24 +02:00
Jeong YunWon
e400c60ed8 Remove _platform RustPython-only module 2022-09-03 23:27:13 +09:00
Jeong YunWon
86118d5276 drop compiler dependencies from stdlib 2022-08-22 04:43:03 +09:00
hyerim
42290b103e Add: _uuid module (#3974) 2022-08-07 15:27:53 +09:00
Jeong YunWon
da9c98675b optional bz2 2022-08-05 04:00:51 +09:00
boris
7204ab7ea8 implement _bz2
Co-Authored-By: Jeong YunWon <jeong@youknowone.org>
2022-08-05 03:53:59 +09:00
Sion Kang
bb52ed774e Feat: grp module (#3967) 2022-08-04 15:44:40 +09:00
Jeong YunWon
573b495def Fix iOS build 2022-07-28 08:49:00 +09:00
Jeong YunWon
cc4583ef50 mmap skeleton 2022-06-14 17:12:51 +09:00
Nixon Enraght-Moony
639a4fe6b6 Add _statistics module containing _normal_dist_inv_cd
Closes #3251
2022-04-20 17:18:31 +09:00
Jeong YunWon
047bab998b Merge pull request #2950 from fanninpm/contextvars
Add contextvars from CPython 3.8
2022-04-20 16:54:00 +09:00
Jeong Yunwon
be9aaf71a6 Move _struct module to stdlib 2022-04-17 02:00:07 +09:00
Padraic Fanning
19d4a2b17b Add statistics accelerator module 2022-02-12 23:27:36 -05:00
Padraic Fanning
0455f0f812 Add contextvars Rust module 2022-01-29 20:17:35 -05:00
snowapril
1aa750b1e4 Remove keyword module from rust-side
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-11-29 23:40:24 +09:00
Jeong YunWon
d622ceb9dc rename native dis to _dis and add python module 2021-11-28 15:50:24 +09:00
Noa
a3723462ce Don't create an intermediate map for rustpython_stdlib::stdlib_inits 2021-11-01 22:37:32 -05:00
Jeong YunWon
6138cb4476 Merge pull request #3357 from coolreader18/edition2021
Migrate to 2021 edition
2021-10-22 08:21:45 +09:00
Noa
53c261a19b Switch to array.into_iter() 2021-10-21 17:12:37 -05:00
jfh
103195b277 Remove Python gc stub, add rust stub. 2021-10-21 19:56:20 +03:00
Jeong YunWon
fb25a15f2c split rustpython-stdlib crate 2021-10-01 01:54:04 +09:00