Skip to content

Commit

Permalink
Add Python generation support. (#77)
Browse files Browse the repository at this point in the history
Co-authored-by: Leigh McCulloch <[email protected]>
  • Loading branch information
overcat and leighmcculloch authored Nov 21, 2023
1 parent 70a8851 commit 68e2484
Show file tree
Hide file tree
Showing 73 changed files with 5,849 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ Xdrgen is a very early project. Aside from the test fixtures in
are the .x files used for the
[stellar-core project](https://github.com/stellar/stellar-core).

Xdrgen presently supports these output languages: ruby, javacript, java,
golang, and elixir:
Xdrgen presently supports these output languages: ruby, javacript, java,
golang, elixir and Python:

- ruby: complete support
- javascript: complete support
Expand All @@ -27,6 +27,7 @@ golang, and elixir:
- elixir: support is experimental as the SDK is in early development. Generated
code requires [:exdr](https://github.com/revelrylabs/exdr) in your deps
- C#: complete support
- Python: complete support

Testing is _very_ sparse, but will improve over time.

Expand Down
1 change: 1 addition & 0 deletions lib/xdrgen/generators.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ module Xdrgen::Generators
autoload :Elixir
autoload :Csharp
autoload :Rust
autoload :Python

def self.for_language(language)
const_get language.to_s.classify
Expand Down
Loading

0 comments on commit 68e2484

Please sign in to comment.