Spyke

If your API client supported Python scripting, would you use it over JavaScript?

Note - This post is intended to look for feedback in a tool that solves a problem we have been seeing (around API clients not supporting Python) - and hopefully help Python folks (like it helped us when building it).

So, a bit of a backstory - Something I noticed while we were building our internal tool for API testing: A lot of developer tools assume JavaScript scripting by default. API clients are a good example of this.

scripting = JavaScript

And yes it might not be always a huge problem, but it adds constant friction.

Eventually we realized the real issue was not just JavaScript. The issue was and is that many tools force a single language.

So when we started building our own API client (link below), we decided to approach scripting differently: Pre-request and post-request scripts support multiple languages and runs on real interpreters, not a limited sandbox like most Clients do.

So we built this to support Python and JS from day 1 and now releasing shell script + more coming (perhaps Go would be the next??)

The idea is simple: Your API tool should adapt to your stack, not the other way around.

Some developers think in JS, some in Python, some in Go or Rust.

The tool shouldn’t care.

Q: Would you actually use Python for request automation inside an API client, or do you prefer handling that logic outside the tool?

Repo: https://github.com/VoidenHQ/voiden

View original on lemmy.world

Recreating uncensored Epstein PDFs from raw encoded attachments

cross-posted from: https://lemmy.world/post/42734920

This is for the more technically inclined among us. I believe, like the author, the DOJ incompetence has created the biggest opportunity for community discovery and accountability.

It’s okay if you don’t understand the terms in this post, please upvote and crosspost for visibility. Thank you.

So here’s the challenge for anyone I can successfully nerdsnipe:

  • Can you manage to recreate the original PDF from the Content-Transfer-Encoding: base64 output included in the dump? It can’t be that hard, can it?
  • Can you find other attachments included in the latest Epstein dumps that might also be possible to reconstruct? Unfortunately, the contractor that developed the full-text searchfor the Department of Justice did a pretty crappy job and full-text search is practically broken even accounting for the bad OCR and wrangled quoted-printable decoding (malicious compliance??); nevertheless, searching for Content-Transfer-Encoding and base64returns a number of results – it’s just that, unfortunately, most are uselessly truncated or only the SMTP headers from Apple Mail curiously extracted.
Recreating uncensored Epstein PDFs from raw encoded attachmentshttps://neosmart.net/blog/recreating-epstein-pdfs-from-raw-encoded-attachments/Open linkView original on lemmy.world

Updating pip in a FUSE cryptomator vault breaks venv

cross-posted from: https://sh.itjust.works/post/27097438

I store my programs in a cryptomator vault which uses a fuse virtual drive (The default on Linux), but when trying to update pip inside a venv I get an error, then any subsequent use of pip also throws an error and {path_to_venv}/lib/python3.12/site-packages/pip/ becomes empty.

I imagine this is an issue that would happen in any FUSE drive although I don't know how to test that.

Here are the logs

  • OS : Fedora 40
  • pip version: 23.3.2 updating to 24.2
  • python version: 3.12.7

I already made a bug report on the github

Does anyone know a temporary workaround for this ?

View original on sh.itjust.works

A simple tool to make a GUI

Do you know libraries to write simple guis that are flexible and largely adopted so I can find guides and examples? No need to design any part of it, just a rigid table-like carcass for buttons and elements.

I'm yet to dip my toe in anything graphical, but I thought that my current learning project could use a simple interface. I'm just afraid I'd give up if it would be too complicated to implement and wire to my now terminal-controlled code.

Can you suggest something for a beginner?

View original on sh.itjust.works

Unable to export plotly image with kaleido

Hi, I'm trying to save a plotly image as a static .svg file using kaleido. I have kaleido-0.2.1 installed, but when I run this code on jupyter: fig1.write_image("../figures/supp1A.svg", format="svg", engine="kaleido")
I get this error:

ValueError: 
Image export using the "kaleido" engine requires the kaleido package,
which can be installed using pip:
    $ pip install -U kaleido

Why does this happens even tho kaleido is installed?

View original on lemmy.world

Lets foster a community!

I started python almost 10 years ago now (jesus that makes me feel old). During that time, r/learnpython was incredibly helpful in that journey, and I learned a lot from the folks there.

I can't wait to build the same thing here, and I want to offer my services as best I can to do so. If you have an issue, question or problem, post! You can reply here if it's just a quick clarification, but feel free to make your own post and include your code. I'll do my best to read it when I can and give any help I can. I don't have "all the knowledge" - but I'm pretty proud of myself for being a near expert with the language.

So hit me, how can I help?

View original on lemmy.world