flet-audio 0.70.0.dev6365__py3-none-any.whl → 0.70.0.dev6619__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of flet-audio might be problematic. Click here for more details.

flet_audio/audio.py CHANGED
@@ -27,7 +27,7 @@ class Audio(ft.Service):
27
27
  is a list of supported audio formats.
28
28
 
29
29
  Raises:
30
- AssertionError: If both [`src`][(c).] and [`src_base64`][(c).] are `None`.
30
+ ValueError: If both `src` and [`src_base64`][(c).] are `None`.
31
31
  """
32
32
 
33
33
  src_base64: Optional[str] = None
@@ -41,7 +41,7 @@ class Audio(ft.Service):
41
41
  is a list of supported audio formats.
42
42
 
43
43
  Raises:
44
- AssertionError: If both [`src`][(c).] and [`src_base64`][(c).] are `None`.
44
+ ValueError: If both `src_base64` and [`src`][(c).] are `None`.
45
45
  """
46
46
 
47
47
  autoplay: bool = False
@@ -118,7 +118,8 @@ class Audio(ft.Service):
118
118
 
119
119
  def before_update(self):
120
120
  super().before_update()
121
- assert self.src or self.src_base64, "either src or src_base64 must be provided"
121
+ if not (self.src or self.src_base64):
122
+ raise ValueError("either src or src_base64 must be provided")
122
123
 
123
124
  async def play(self, position: ft.DurationValue = 0):
124
125
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: flet-audio
3
- Version: 0.70.0.dev6365
3
+ Version: 0.70.0.dev6619
4
4
  Summary: Provides audio integration and playback in Flet apps.
5
5
  Author-email: Flet contributors <hello@flet.dev>
6
6
  License-Expression: Apache-2.0
@@ -11,7 +11,7 @@ Project-URL: Issues, https://github.com/flet-dev/flet/issues
11
11
  Requires-Python: >=3.10
12
12
  Description-Content-Type: text/markdown
13
13
  License-File: LICENSE
14
- Requires-Dist: flet==0.70.0.dev6365
14
+ Requires-Dist: flet==0.70.0.dev6619
15
15
  Dynamic: license-file
16
16
 
17
17
  # flet-audio
@@ -1,15 +1,15 @@
1
1
  flet_audio/__init__.py,sha256=w1U2RdGkcYl_V-bGG1oKQExQ80axXqOyOZL4D6bJAcE,346
2
- flet_audio/audio.py,sha256=3FyeHzROla3XUMacK8Am8IHFu7enW64ZUXeu61JaESU,5798
2
+ flet_audio/audio.py,sha256=GEoa5qUCJrgcUmfvWf5sv2Waoa6x32vWYwNaHw9HL-Q,5806
3
3
  flet_audio/types.py,sha256=jhmP0-kowX5MzYezBvzDHmj7YQ7uxdY5FtNGX2qEWlk,2340
4
- flet_audio-0.70.0.dev6365.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
4
+ flet_audio-0.70.0.dev6619.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
5
5
  flutter/flet_audio/analysis_options.yaml,sha256=32kjGAc-zF87inWaH5M46yGZWQDTwrwfvNLHeAocfG4,154
6
- flutter/flet_audio/pubspec.lock,sha256=qubqGHgb5HSAj-x3wPKztgQ0qTExqueh3NV_lqGF63g,25845
6
+ flutter/flet_audio/pubspec.lock,sha256=K3Oe7sbpGzixJo-jiU2LD_gn06AHeD6VeYIkMXr0JPU,25614
7
7
  flutter/flet_audio/pubspec.yaml,sha256=KTuaPDPr1Nnh6yAGddLMsZAUizj_kqlROyCy9_fG2TI,359
8
8
  flutter/flet_audio/lib/flet_audio.dart,sha256=JsHEW9Gic_011jhKpnn278pi1kiWjp9gUjfNF5rWmXs,65
9
9
  flutter/flet_audio/lib/src/audio.dart,sha256=ExGoAU9pIlR5z6ptVDXRMhD5NktkBljN9OgRy5InfIw,5108
10
10
  flutter/flet_audio/lib/src/extension.dart,sha256=okI-bxwSUB9FwgJ7TmiiHcE5yi5z66Yp1ri--V1wVnw,299
11
11
  flutter/flet_audio/lib/src/utils/audio.dart,sha256=Rpbf7xJkNB3xtwrfmXru1t2k3_TgPEnh3Ws6i_2J0EQ,346
12
- flet_audio-0.70.0.dev6365.dist-info/METADATA,sha256=Kbw8P3IfWgH9DPzytrtVf_07WQnDjXobDLUK03dcp9A,2403
13
- flet_audio-0.70.0.dev6365.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- flet_audio-0.70.0.dev6365.dist-info/top_level.txt,sha256=hZbGOXppSiKRUWJf1ZRlBKMyfijq6Y-8DffGOh10Wq4,19
15
- flet_audio-0.70.0.dev6365.dist-info/RECORD,,
12
+ flet_audio-0.70.0.dev6619.dist-info/METADATA,sha256=zL5S3roY_FSq4Ckq86PvEhdw-VVvfULiYkUoP1rhs-8,2403
13
+ flet_audio-0.70.0.dev6619.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ flet_audio-0.70.0.dev6619.dist-info/top_level.txt,sha256=hZbGOXppSiKRUWJf1ZRlBKMyfijq6Y-8DffGOh10Wq4,19
15
+ flet_audio-0.70.0.dev6619.dist-info/RECORD,,
@@ -109,18 +109,18 @@ packages:
109
109
  dependency: transitive
110
110
  description:
111
111
  name: cross_file
112
- sha256: "7caf6a750a0c04effbb52a676dce9a4a592e10ad35c34d6d2d0e4811160d5670"
112
+ sha256: "942a4791cd385a68ccb3b32c71c427aba508a1bb949b86dff2adbe4049f16239"
113
113
  url: "https://pub.dev"
114
114
  source: hosted
115
- version: "0.3.4+2"
115
+ version: "0.3.5"
116
116
  crypto:
117
117
  dependency: transitive
118
118
  description:
119
119
  name: crypto
120
- sha256: "1e445881f28f22d6140f181e07737b22f1e099a5e1ff94b0af2f9e4a463f4855"
120
+ sha256: c8ea0233063ba03258fbcf2ca4d6dadfefe14f02fab57702265467a19f27fadf
121
121
  url: "https://pub.dev"
122
122
  source: hosted
123
- version: "3.0.6"
123
+ version: "3.0.7"
124
124
  dbus:
125
125
  dependency: transitive
126
126
  description:
@@ -133,10 +133,10 @@ packages:
133
133
  dependency: transitive
134
134
  description:
135
135
  name: device_info_plus
136
- sha256: "49413c8ca514dea7633e8def233b25efdf83ec8522955cc2c0e3ad802927e7c6"
136
+ sha256: dd0e8e02186b2196c7848c9d394a5fd6e5b57a43a546082c5820b1ec72317e33
137
137
  url: "https://pub.dev"
138
138
  source: hosted
139
- version: "12.1.0"
139
+ version: "12.2.0"
140
140
  device_info_plus_platform_interface:
141
141
  dependency: transitive
142
142
  description:
@@ -617,14 +617,6 @@ packages:
617
617
  url: "https://pub.dev"
618
618
  source: hosted
619
619
  version: "1.10.1"
620
- sprintf:
621
- dependency: transitive
622
- description:
623
- name: sprintf
624
- sha256: "1fc9ffe69d4df602376b52949af107d8f5703b77cda567c4d7d86a0693120f23"
625
- url: "https://pub.dev"
626
- source: hosted
627
- version: "7.0.0"
628
620
  stack_trace:
629
621
  dependency: transitive
630
622
  description:
@@ -749,10 +741,10 @@ packages:
749
741
  dependency: transitive
750
742
  description:
751
743
  name: uuid
752
- sha256: a5be9ef6618a7ac1e964353ef476418026db906c4facdedaa299b7a2e71690ff
744
+ sha256: a11b666489b1954e01d992f3d601b1804a33937b5a8fe677bd26b8a9f96f96e8
753
745
  url: "https://pub.dev"
754
746
  source: hosted
755
- version: "4.5.1"
747
+ version: "4.5.2"
756
748
  vector_graphics:
757
749
  dependency: transitive
758
750
  description: