tejpochiraju

tejpochiraju

Hi all,

I wrote a small Python based code generator to create the type-specced Elixir module for the IoT service. I am looking for folks to help test and improve the generator.

The generator is here and the generated module is here. I couldn’t get the formatting right in the gist but you should be able to reformat it in your code editor.

Thanks,

Showing Posts 1 to 3

tejpochiraju

tejpochiraju OP

  • I have updated the generator to use Jinja - much cleaner and easier to reason with.
  • Each function now returns a query
  • I am running mix format at the end of generation.

The code still compiles and the queries seem to work. I have updated the gist too.

Thanks to a suggestion from @Bernard, might move this to EEx. It would be great if someone could try this on other AWS services.

hauleth

hauleth

Have you tried aws-elixir? It is also generated, but for all different AWS services.

tejpochiraju

tejpochiraju OP

Wow, that’s pretty much what I was aiming for. Thanks a ton!

I will take a look and see if it’s worth migrating from ex_aws. If not, I will maintain this generator for the services we use.

— All posts loaded —

Where Next? Top

Trending in Discussions Top

AstonJ
The obligatory hello world thread! Who are you and where are you from? :stuck_out_tongue:
4663 61218 595
New
cblavier
Hey there, It’s been more than a year since we started using LiveView as our main UI library and building a whole library of UI componen...
515 12931 101
New
wmnnd
Hey folks, I wanted to share with you a project I’ve been working on for a while: It’s an Open Source (AGPLv3) newsletter tool. Think Ma...
New
raa-ziq
Hi everyone :waving_hand: I wanted to share something I’ve been building — NowBlind, a random chat app designed to help people discover ...
New
sntran
In my third year of college, around 2010, I found Erlang. A few years later, I found Elixir. I liked the ideas at once: many small proces...
New
Ganna
Hi everyone, I have 8 years of production experience with Erlang/OTP and I’m just starting to get to know Elixir. What would you learn f...
New
gtcode
I’ve been tinkering with Lynx (by José) via hold_ledger. I used AI to write the code, a separate specification, the tests, and the Lean p...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New
kip
Localize is the next generation localisation library for Elixir. Think of it as ex_cldr version 3.0. The first version will be released ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews