* [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source
@ 2024-08-24 10:05 Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type Roman Scherer
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 10:05 UTC (permalink / raw)
To: 72783
Cc: Roman Scherer, Andrew Tropin, Katherine Cox-Buday,
Liliana Marie Prikler
Hello Guix,
this patch series adds two of my Emacs Lisp libraries:
- emacs-plz-media-type
- emacs-plz-event-source
Could you please review it?
Thanks, Roman.
Roman Scherer (2):
gnu: Add emacs-plz-media-type.
gnu: Add emacs-plz-event-source.
gnu/packages/emacs-xyz.scm | 52 ++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
base-commit: d48af5cca84914d44b032d0bf0820640ebbe7a4b
--
2.45.2
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type.
2024-08-24 10:05 [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Roman Scherer
@ 2024-08-24 10:08 ` Roman Scherer
2024-08-24 10:32 ` Liliana Marie Prikler
2024-08-24 10:08 ` [bug#72783] [PATCH 2/2] gnu: Add emacs-plz-event-source Roman Scherer
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 10:08 UTC (permalink / raw)
To: 72783
Cc: Roman Scherer, Andrew Tropin, Katherine Cox-Buday,
Liliana Marie Prikler
* gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
---
gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cb7269d6b9..7ce112ea00 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21460,6 +21460,34 @@ (define-public emacs-plz
which avoids some of the issues with using Emacs’s built-in Url library.")
(license license:gpl3+)))
+(define-public emacs-plz-media-type
+ (package
+ (name "emacs-plz-media-type")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/r0man/plz-media-type")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-plz))
+ (arguments (list #:tests? #f))
+ (home-page "https://github.com/r0man/plz-media-type")
+ (synopsis "HTTP media type extension for plz.el")
+ (description "The plz-media-type library enhances MIME type
+handling for HTTP requests within Emacs. It leverages the plz.el HTTP
+library for networking calls and introduces a mechanism to process
+responses based on the content type header. This library defines
+various classes and methods for parsing and processing standard MIME
+types, including JSON, XML, HTML, and binary data. It is used in the
+Emacs LLM library to handle decoding of various streaming and
+non-streaming media type formats.")
+ (license license:gpl3+)))
+
(define-public emacs-ement
(package
(name "emacs-ement")
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type.
2024-08-24 10:08 ` [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type Roman Scherer
@ 2024-08-24 10:32 ` Liliana Marie Prikler
2024-08-24 11:19 ` Roman Scherer
0 siblings, 1 reply; 8+ messages in thread
From: Liliana Marie Prikler @ 2024-08-24 10:32 UTC (permalink / raw)
To: Roman Scherer, 72783; +Cc: Katherine Cox-Buday, Andrew Tropin
Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
>
> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
> ---
> gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
> 1 file changed, 28 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index cb7269d6b9..7ce112ea00 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
> which avoids some of the issues with using Emacs’s built-in Url
> library.")
> (license license:gpl3+)))
>
> +(define-public emacs-plz-media-type
> + (package
> + (name "emacs-plz-media-type")
> + (version "0.2.1")
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/r0man/plz-media-type")
> + (commit (string-append "v" version))))
> + (file-name (git-file-name name version))
> + (sha256
> + (base32
> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
> + (build-system emacs-build-system)
> + (propagated-inputs (list emacs-plz))
> + (arguments (list #:tests? #f))
> + (home-page "https://github.com/r0man/plz-media-type")
> + (synopsis "HTTP media type extension for plz.el")
> + (description "The plz-media-type library enhances MIME type
> +handling for HTTP requests within Emacs. It leverages the plz.el
> HTTP
> +library for networking calls and introduces a mechanism to process
> +responses based on the content type header. This library defines
> +various classes and methods for parsing and processing standard MIME
> +types, including JSON, XML, HTML, and binary data."
SGTM.
> It is used in the
> +Emacs LLM library to handle decoding of various streaming and
> +non-streaming media type formats.")
I'm not sure whether this bit is necessary. There are hopefully useful
technologies out there that also benefit from plz.
Cheers
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type.
2024-08-24 10:32 ` Liliana Marie Prikler
@ 2024-08-24 11:19 ` Roman Scherer
0 siblings, 0 replies; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 11:19 UTC (permalink / raw)
To: Liliana Marie Prikler
Cc: Roman Scherer, Katherine Cox-Buday, 72783, Andrew Tropin
[-- Attachment #1: Type: text/plain, Size: 2405 bytes --]
Liliana Marie Prikler <liliana.prikler@gmail.com> writes:
Hi Liliana,
thanks for the review. I removed that bit and sent v2 of the series.
Thanks, Roman.
> Am Samstag, dem 24.08.2024 um 12:08 +0200 schrieb Roman Scherer:
>> * gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
>>
>> Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
>> ---
>> gnu/packages/emacs-xyz.scm | 28 ++++++++++++++++++++++++++++
>> 1 file changed, 28 insertions(+)
>>
>> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
>> index cb7269d6b9..7ce112ea00 100644
>> --- a/gnu/packages/emacs-xyz.scm
>> +++ b/gnu/packages/emacs-xyz.scm
>> @@ -21460,6 +21460,34 @@ (define-public emacs-plz
>> which avoids some of the issues with using Emacs’s built-in Url
>> library.")
>> (license license:gpl3+)))
>>
>> +(define-public emacs-plz-media-type
>> + (package
>> + (name "emacs-plz-media-type")
>> + (version "0.2.1")
>> + (source
>> + (origin
>> + (method git-fetch)
>> + (uri (git-reference
>> + (url "https://github.com/r0man/plz-media-type")
>> + (commit (string-append "v" version))))
>> + (file-name (git-file-name name version))
>> + (sha256
>> + (base32
>> "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
>> + (build-system emacs-build-system)
>> + (propagated-inputs (list emacs-plz))
>> + (arguments (list #:tests? #f))
>> + (home-page "https://github.com/r0man/plz-media-type")
>> + (synopsis "HTTP media type extension for plz.el")
>> + (description "The plz-media-type library enhances MIME type
>> +handling for HTTP requests within Emacs. It leverages the plz.el
>> HTTP
>> +library for networking calls and introduces a mechanism to process
>> +responses based on the content type header. This library defines
>> +various classes and methods for parsing and processing standard MIME
>> +types, including JSON, XML, HTML, and binary data."
> SGTM.
>> It is used in the
>> +Emacs LLM library to handle decoding of various streaming and
>> +non-streaming media type formats.")
> I'm not sure whether this bit is necessary. There are hopefully useful
> technologies out there that also benefit from plz.
>
> Cheers
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 528 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH 2/2] gnu: Add emacs-plz-event-source.
2024-08-24 10:05 [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type Roman Scherer
@ 2024-08-24 10:08 ` Roman Scherer
2024-08-24 11:17 ` [bug#72783] [PATCH v2 1/2] gnu: Add emacs-plz-media-type Roman Scherer
2024-08-26 20:36 ` bug#72783: [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Nicolas Goaziou via Guix-patches via
3 siblings, 0 replies; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 10:08 UTC (permalink / raw)
To: 72783
Cc: Roman Scherer, Andrew Tropin, Katherine Cox-Buday,
Liliana Marie Prikler
* gnu/packages/emacs-xyz.scm (emacs-plz-event-source): New variable.
Change-Id: I66fc237fb191c0406fcf2d08c2938264e2dd9b95
---
gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 7ce112ea00..a3340f1a36 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21488,6 +21488,30 @@ (define-public emacs-plz-media-type
non-streaming media type formats.")
(license license:gpl3+)))
+(define-public emacs-plz-event-source
+ (package
+ (name "emacs-plz-event-source")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/r0man/plz-event-source")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rg3dmaqnhzvzqsyfnk3y77s88jrjpwpzkj1fyz40j8b184q3qcs"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-plz-media-type))
+ (arguments (list #:tests? #f))
+ (home-page "https://github.com/r0man/plz-event-source")
+ (synopsis "Server-Sent Events extension for plz.el")
+ (description "The plz-event-source library provides a @code{plz-media-type}, a
+parser and an event source implementation for the @acronym{SSE, Server
+Sent Event} protocol. It is used in the Emacs LLM library to handle
+server sent events.")
+ (license license:gpl3+)))
+
(define-public emacs-ement
(package
(name "emacs-ement")
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH v2 1/2] gnu: Add emacs-plz-media-type.
2024-08-24 10:05 [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 2/2] gnu: Add emacs-plz-event-source Roman Scherer
@ 2024-08-24 11:17 ` Roman Scherer
2024-08-24 11:17 ` [bug#72783] [PATCH v2 2/2] gnu: Add emacs-plz-event-source Roman Scherer
2024-08-26 20:36 ` bug#72783: [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Nicolas Goaziou via Guix-patches via
3 siblings, 1 reply; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 11:17 UTC (permalink / raw)
To: 72783
Cc: Roman Scherer, Andrew Tropin, Katherine Cox-Buday,
Liliana Marie Prikler
* gnu/packages/emacs-xyz.scm (emacs-plz-media-type): New variable.
Change-Id: Ib38d91e1cc642afd34b480967a34e0db0e28e4c6
---
gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index cb7269d6b9..8f78926393 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21460,6 +21460,32 @@ (define-public emacs-plz
which avoids some of the issues with using Emacs’s built-in Url library.")
(license license:gpl3+)))
+(define-public emacs-plz-media-type
+ (package
+ (name "emacs-plz-media-type")
+ (version "0.2.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/r0man/plz-media-type")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1bxrinp276rzz1jwnqrs5xginm96vzxr0b1k5q3y56lnin8sp18x"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-plz))
+ (arguments (list #:tests? #f))
+ (home-page "https://github.com/r0man/plz-media-type")
+ (synopsis "HTTP media type extension for plz.el")
+ (description "The plz-media-type library enhances MIME type handling for
+HTTP requests within Emacs. It leverages the plz.el HTTP library for
+networking calls and introduces a mechanism to process responses based on the
+content type header. This library defines various classes and methods for
+parsing and processing standard MIME types, including JSON, XML, HTML, and
+binary data, in a streaming and non-streaming way.")
+ (license license:gpl3+)))
+
(define-public emacs-ement
(package
(name "emacs-ement")
base-commit: d48af5cca84914d44b032d0bf0820640ebbe7a4b
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* [bug#72783] [PATCH v2 2/2] gnu: Add emacs-plz-event-source.
2024-08-24 11:17 ` [bug#72783] [PATCH v2 1/2] gnu: Add emacs-plz-media-type Roman Scherer
@ 2024-08-24 11:17 ` Roman Scherer
0 siblings, 0 replies; 8+ messages in thread
From: Roman Scherer @ 2024-08-24 11:17 UTC (permalink / raw)
To: 72783
Cc: Roman Scherer, Andrew Tropin, Katherine Cox-Buday,
Liliana Marie Prikler
* gnu/packages/emacs-xyz.scm (emacs-plz-event-source): New variable.
Change-Id: I66fc237fb191c0406fcf2d08c2938264e2dd9b95
---
gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8f78926393..cc845588f1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -21486,6 +21486,29 @@ (define-public emacs-plz-media-type
binary data, in a streaming and non-streaming way.")
(license license:gpl3+)))
+(define-public emacs-plz-event-source
+ (package
+ (name "emacs-plz-event-source")
+ (version "0.1.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/r0man/plz-event-source")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rg3dmaqnhzvzqsyfnk3y77s88jrjpwpzkj1fyz40j8b184q3qcs"))))
+ (build-system emacs-build-system)
+ (propagated-inputs (list emacs-plz-media-type))
+ (arguments (list #:tests? #f))
+ (home-page "https://github.com/r0man/plz-event-source")
+ (synopsis "Server-Sent Events extension for plz.el")
+ (description "The plz-event-source library provides a @code{plz-media-type}, a
+parser and an event source implementation for the @acronym{SSE, Server
+Sent Event} protocol.")
+ (license license:gpl3+)))
+
(define-public emacs-ement
(package
(name "emacs-ement")
--
2.45.2
^ permalink raw reply related [flat|nested] 8+ messages in thread
* bug#72783: [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source
2024-08-24 10:05 [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Roman Scherer
` (2 preceding siblings ...)
2024-08-24 11:17 ` [bug#72783] [PATCH v2 1/2] gnu: Add emacs-plz-media-type Roman Scherer
@ 2024-08-26 20:36 ` Nicolas Goaziou via Guix-patches via
3 siblings, 0 replies; 8+ messages in thread
From: Nicolas Goaziou via Guix-patches via @ 2024-08-26 20:36 UTC (permalink / raw)
To: Roman Scherer; +Cc: 72783-done
Hello,
Roman Scherer <roman@burningswell.com> writes:
> this patch series adds two of my Emacs Lisp libraries:
>
> - emacs-plz-media-type
> - emacs-plz-event-source
Applied. Thank you.
Regards,
--
Nicolas Goaziou
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2024-08-26 20:37 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-24 10:05 [bug#72783] [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 1/2] gnu: Add emacs-plz-media-type Roman Scherer
2024-08-24 10:32 ` Liliana Marie Prikler
2024-08-24 11:19 ` Roman Scherer
2024-08-24 10:08 ` [bug#72783] [PATCH 2/2] gnu: Add emacs-plz-event-source Roman Scherer
2024-08-24 11:17 ` [bug#72783] [PATCH v2 1/2] gnu: Add emacs-plz-media-type Roman Scherer
2024-08-24 11:17 ` [bug#72783] [PATCH v2 2/2] gnu: Add emacs-plz-event-source Roman Scherer
2024-08-26 20:36 ` bug#72783: [PATCH 0/2] Add emacs-plz-media-type and emacs-plz-event-source Nicolas Goaziou via Guix-patches via
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).