8000 Release 1.4.1; Dash docset; Fixed bug in trace config · FirebirdSQL/python3-base@358e5e5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 358e5e5

Browse files
committed
Release 1.4.1; Dash docset; Fixed bug in trace config
1 parent 2414792 commit 358e5e5

File tree

168 files changed

+74412
-7
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

168 files changed

+74412
-7
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleIdentifier</key>
6+
<string>Firebird-base</string>
7+
<key>CFBundleName</key>
8+
<string>Firebird-base</string>
9+
<key>DashDocSetDeclaredInStyle</key>
10+
<string>originalName</string>
11+
<key>DashDocSetFallbackURL</key>
12+
<string>https://firebird-base.readthedocs.io/en/latest/</string>
13+
<key>DashDocSetFamily</key>
14+
<string>python</string>
15+
<key>DocSetPlatformFamily</key>
16+
<string>firebird-base</string>
17+
<key>isDashDocset</key>
18+
<true/>
19+
<key>isJavaScriptEnabled</key>
20+
<false/>
21+
</dict>
22+
</plist>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Sphinx build info version 1
2+
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
3+
config: 9305cd2bf6ad568008c57dfe7bbf87a0
4+
tags: 645f666f9bcd5a90fca523b33c5a78b7
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
.. module:: firebird.base.buffer
2+
:synopsis: Memory buffer manager
3+
4+
##############################
5+
buffer - Memory buffer manager
6+
##############################
7+
8+
Overview
9+
========
10+
11+
This module provides a raw memory buffer manager with convenient methods to read/write
12+
data of various data type.
13+
14+
MemoryBuffer
15+
============
16+
17+
.. autoclass:: MemoryBuffer
18+
19+
Buffer factories
20+
================
21+
22+
Buffer factory protocol
23+
-----------------------
24+
25+
.. autoclass:: BufferFactory
26+
27+
bytes factory
28+
-------------
29+
30+
.. autoclass:: BytesBufferFactory
31+
32+
ctypes factory
33+
--------------
34+
35+
.. autoclass:: CTypesBufferFactory
36+
Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
#########
2+
Changelog
3+
#########
4+
5+
Version 1.4.1
6+
=============
7+
8+
* Fix: uregistered bug in trace.TraceConfig - redundant `flags` definition.
9+
* New: Documentation now contains `Dash` / `Zeal` docset.
10+
11+
Version 1.4.0
12+
=============
13+
14+
* Upgrade to protobuf 4.21.1. As this upgrade has consequences, please read
15+
https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
16+
17+
Version 1.3.1
18+
=============
19+
20+
* `~firebird.base.buffer` module:
21+
22+
- Added `.MemoryBuffer.write_sized_string` for symetry with `.read_sized_string`.
23+
- Now `.MemoryBuffer` string functions has also `errors` parameter in addition to `encoding`.
24+
25+
* `~firebird.base.config` module:
26+
27+
- Direct assignment to `.Config` option raises a `ValueError` exception with message
28+
"Cannot assign values to option itself, use `option.value` instead".
29+
30+
Version 1.3.0
31+
=============
32+
33+
* `~firebird.base.config` module:
34+
35+
- Layout produced by `.get_config()` was changed.
36+
- `.Config` has new constructor keyword-only argument `description`.
37+
- Fix: uregistered bug in config.ListOption - value and default was the same instance
38+
39+
Version 1.2.0
40+
=============
41+
42+
* Build scheme changed to `PEP 517`.
43+
* Various changes to documentation and type hint adjustments.
44+
* `~firebird.base.config` module:
45+
46+
- **BREAKING CHANGE**: `.ApplicationDirectoryScheme` was replaced by
47+
`~firebird.base.config.DirectoryScheme` class, and
48+
`~firebird.base.config.get_directory_scheme()` has changed signature.
49+
- Directory scheme was reworked and now also supports concept of HOME directory.
50+
- New MacOS directory scheme support. As I don't have access to MacOS, this support
51+
should be considered EXPERIMENTAL. Any feedback about it's correctness is welcome.
52+
- Added: New `.Config` constructor keyword-only `bool` argument `optional` and
53+
associated `~Config.optional` read-only property.
54+
- Added: `.Config.has_value()` function.
55+
- New class: `.PathOption` for Configuration options with `pathlib.Path` value.
56+
* `~firebird.base.protobuf` module:
57+
58+
- Added: function `.get_message_factory`.
59+
* `~firebird.base.signal` module:
60+
61+
- Fix: Bug in `eventsocket` signature handling.
62+
* `~firebird.base.trace` module:
63+
64+
- Added: `apply_to_descendants` boolean configuration option to apply configuration also
65+
to all registered descendant classes. The default value is `True`.
66+
67+
Version 1.1.0
68+
=============
69+
70+
* New module: `signal` - Callback system based on Signals and Slots, and "Delphi events"
71+
* `~firebird.base.types` module:
72+
73+
- `~firebird.base.types.load` function now supports `object_name[.object_name...]`
74+
specifications instead single `object_name`.
75+
* `~firebird.base.config` module:
76+
77+
- New class `.ApplicationDirectoryScheme`
78+
- `~firebird.base.config.Config.load_config()`: raises error when section is missing,
79+
better error handling when exception is raised while loading options
80+
- `~firebird.base.config.PyCallableOption` `signature` argument could be
81+
`inspect.Signature` or Callable
82+
- Introduced `.PROTO_CONFIG` constant with fully qualified name for `ConfigProto` protobuf
83+
- Optional argument `to_default` in `~firebird.base.config.Option.clear()` is now keyword-only.
84+
* `~firebird.base.logging` module:
85+
86+
- `.get_logging_id()` uses `__qualname__` instead `__name__`
87+
* `~firebird.base.protobuf` module:
88+
89+
- Added direct support for key well-known data types `Empty`, `Any`, `Duration`,
90+
`Timestamp`, `Struct`, `Value`, `ListValue` and `FieldMask`. They are automatically
91+
registered. New constants 'PROTO_<type>' with fully qualified names.
92+
- `~firebird.base.protobuf.create_message()` has new optional `serialized` argument with
93+
`bytes` that should be parsed into newly created message instance.
94+
- New functions `~firebird.base.protobuf.struct2dict()` and `~firebird.base.protobuf.dict2struct()`
95+
* `~firebird.base.trace` module:
96+
97+
- `~firebird.base.trace.TraceFlag` value `DISABLED` was renamed to `NONE`.
98+
- Added support for trace configuration based on `~firebird.base.config`, using new
99+
classes `~firebird.base.trace.BaseTraceConfig`, `~firebird.base.trace.TracedMethodConfig`,
100+
`~firebird.base.trace.TracedClassConfig` and `~firebird.base.trace.TraceConfig`.
101+
- New methods in `~firebird.base.trace.TraceManager`:
102+
103+
- `~firebird.base.trace.TraceManager.load_config()` to update trace from configuration.
104+
- `~firebird.base.trace.TraceManager.set_flag()` and
105+
`~firebird.base.trace.TraceManager.clear_flag()`.
106+
* `~firebird.base.types` module:
107+
108+
- `~firebird.base.types.MIME` now handles access to properties more efficiently and faster.
109+
- New function `~firebird.base.types.load()`.
110+
* Changes in documentation.
111+
112+
Version 1.0.0
113+
=============
114+
115+
* Documentation: new examples for :doc:`trace`, :doc:`logging` and :doc:`hooks`
116+
* Documentation: adjustments to css
117+
* DataList is now generic class
118+
* `.DataList.extract()` has new 'copy' argument.
119+
120+
Version 0.6.1
121+
=============
122+
123+
* Promoted to stable
124+
* More documentation
125+
126+
Version 0.6.0
127+
=============
128+
129+
* New module: `~firebird.base.strconv` - Data conversion from/to string
130+
* New module: `~firebird.base.trace` - Trace/audit for class instances
131+
* Reworked module: `~firebird.base.config` - Classes for configuration definitions
132+
133+
- New class: `.ConfigOption` - Configuration option with `Config` value
134+
- New class: `.ConfigListOption` - Configuration option with list of `Config` values
135+
- New class: `.DataclassOption` - Configuration option with a dataclass value
136+
* Changed module: `~firebird.base.types`
137+
138+
- New class: `.MIME` - MIME type specification
139+
- New class: `.PyExpr` - Source code for Python expression
140+
- New class: `.PyCode` - Python source code
141+
- New class: `.PyCallable` - Source code for Python callable
142+
- Removed function: str2bool
143+
* Changed module: `~firebird.base.logging`
144+
145+
- Trace/audit functionality removed (into new module `~firebird.base.trace`)
146+
147+
Version 0.5.0
148+
=============
149+
150+
Initial release.
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
.. module:: firebird.base.collections
2+
:synopsis: Various collection types
3+
4+
######################################
5+
collections - Various collection types
6+
######################################
7+
8+
Overview
9+
========
10+
11+
This module provides data structures that behave much like builtin `list` and `dict` types,
12+
but with direct support of operations that can use structured data stored in container, and
13+
which would normally require utilization of `operator`, `functools` or other means.
14+
15+
All containers provide next operations:
16+
17+
* `filter` and `filterfalse` that return generator that yields items for which `expr` is
18+
evaluated as True (or False).
19+
* `find` that returns first item for which `expr` is evaluated as True, or default.
20+
* `contains` that returns True if there is any item for which `expr` is evaluated as True.
21+
* `occurrence` that returns number of items for which `expr` is evaluated as True.
22+
* `all` and `any` that return True if `expr` is evaluated as True for all or any list element(s).
23+
* `report` that returns generator that yields data produced by expression(s) evaluated on
24+
list items.
25+
26+
Individual collection types provide additional operations like splitting and extracting
27+
based on expression etc.
28+
29+
Expressions used by these methods could be strings that contain Python expression
30+
referencing the collection item(s), or lambda functions.
31+
32+
Types for type hints & annotations
33+
==================================
34+
35+
.. autodata:: Item
36+
.. autodata:: TypeSpec
37+
.. autodata:: ItemExpr
38+
.. autodata:: FilterExpr
39+
.. autodata:: CheckExpr
40+
41+
Collections
42+
===========
43+
44+
BaseObjectCollection
45+
--------------------
46+
.. autoclass:: BaseObjectCollection
47+
48+
DataList
49+
--------
50+
.. autoclass:: DataList
51+
52+
Registry
53+
--------
54+
.. autoclass:: Registry
55+
56+
Functions
57+
=========
58+
59+
make_lambda
60+
-----------
61+
.. autofunction:: make_lambda
62+
63 371C +
64+

0 commit comments

Comments
 (0)
0