Apply Namer to Python code gen (#7146)

* Refactor out a  class from Rust Codegen

* Convert GenerateRustModuleRootFile

* git-clang-format

* unused variable

* parenthesis

* update BUILD file

* buildifier

* Delete bfbs_gen_rust.h

* Delete bfbs_gen_rust.cpp

* Addressed some comments

* Namer::EnumVariant

* Remove do not submit; Add Namespace vector overload

* Unshadow variable

* removed redundant variables

* Apply Namer to Python

* Use more variables a bit

* Apply const a bunch

* More variables

* Fix ObjectTypes

* git clang format

* small thing

* Simplified code around nested flatbuffers

* Make more methods const.

* Python files are kKeep case

* Address DO NOT SUBMIT in SaveType

* ensure dir exists before saving files

* fix space

Co-authored-by: Casper Neo <cneo@google.com>
3 files changed
tree: 0c63c3f830fe550f2d7c74dc1d3791a4aa9b8d72
  1. .bazelci/
  2. .github/
  3. .travis/
  4. android/
  5. bazel/
  6. benchmarks/
  7. CMake/
  8. conan/
  9. dart/
  10. docs/
  11. go/
  12. grpc/
  13. include/
  14. java/
  15. js/
  16. kotlin/
  17. lobster/
  18. lua/
  19. mjs/
  20. net/
  21. php/
  22. python/
  23. reflection/
  24. rust/
  25. samples/
  26. scripts/
  27. snap/
  28. src/
  29. swift/
  30. tests/
  31. ts/
  32. .clang-format
  33. .editorconfig
  34. .eslintrc.js
  35. .gitattributes
  36. .gitignore
  37. .travis.yml
  38. BUILD.bazel
  39. build_defs.bzl
  40. CMakeLists.txt
  41. composer.json
  42. conanfile.py
  43. CONTRIBUTING.md
  44. Formatters.md
  45. LICENSE.txt
  46. package.json
  47. pom.xml
  48. readme.md
  49. SECURITY.md
  50. swift.swiftformat
  51. tsconfig.json
  52. tsconfig.mjs.json
  53. WORKSPACE
readme.md

logo FlatBuffers

Build status Join the chat at https://gitter.im/google/flatbuffers Discord Chat Twitter Follow Twitter Follow

FlatBuffers is a cross platform serialization library architected for maximum memory efficiency. It allows you to directly access serialized data without parsing/unpacking it first, while still having great forwards/backwards compatibility.

Go to our landing page to browse our documentation.

Supported operating systems

  • Windows
  • MacOS X
  • Linux
  • Android
  • And any others with a recent C++ compiler.

Supported programming languages

  • C++
  • C#
  • C
  • Dart
  • Go
  • Java
  • JavaScript
  • Lobster
  • Lua
  • PHP
  • Python
  • Rust
  • TypeScript

and more in progress...

Contribution

To contribute to this project, see CONTRIBUTING.

Security

Please see our Security Policy for reporting vulnerabilities.

Licensing

Flatbuffers is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.