Skip to content

Similar to what TypeScript is to JavaScript, Cobra is an abstraction of Python which can compile into Python, but with improved types, memory management, and syntax. Cobra is also backwards compatible with Python2.7 & Python3, to use (similar to TypeScript), rename your .py files to .pyc

License

Notifications You must be signed in to change notification settings

hudson-newey/cobra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cobra

An abstraction of Python which supports stronger typing, error checking, defensive coding principles, and much needed features


Current Features:

  • Constant Variables (via const keyword)
    • Displays an error if you try to reassign a value to a constant
  • Short code function declaration (via the fn keyword)
  • Optimised output code
    • Removes empty lines
    • Removes comments
    • Modifies functional assignments to be constants (where possible)
  • Checks for unused imports
  • Displays tips on how to improve your code quality

And it's all backwards compatible with Python & Python3! Just rename your filetype to .pyc!

Online Web Docs & Help

About

Similar to what TypeScript is to JavaScript, Cobra is an abstraction of Python which can compile into Python, but with improved types, memory management, and syntax. Cobra is also backwards compatible with Python2.7 & Python3, to use (similar to TypeScript), rename your .py files to .pyc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published