Cheuk Ho - How to be Pythonic? Design a Query Language in Python

Discover the secrets of writing Pythonic code and designing a query language that's easy to use and beautiful. Learn how to create a Pythonic interface to a graph database and visualize relationships between objects.

Key takeaways
  • What is Pythonic? Asked a poll and the result shows that people do not agree on a single definition, but most people think it means writing clean and elegant code.
  • The speaker designed a query language for TerminusDB, a graph database.
  • The query language is designed to be easy to use and Pythonic, allowing users to query the database like they would write Python code.
  • The language is open source and can be used to create a Pythonic interface to the database.
  • The speaker also designed a graph visualization tool for TerminusDB, which allows users to visualize relationships between objects in the database.
  • The tool is designed to be easy to use and Pythonic, and allows users to create custom visualizations.
  • The speaker also talked about the importance of beauty in code, and how making code beautiful is a matter of personal preference.
  • The speaker showed an example of a family tree, using the graph visualization tool to visualize the relationships between people in the family.
  • The speaker also talked about the importance of collaboration, and how using open source tools can facilitate collaboration.
  • The speaker mentioned that the query language is designed to be extensible and flexible, allowing users to create custom queries and visualizations.
  • The speaker also talked about the importance of community, and how the Python community is important for the development and maintenance of the query language.
  • The speaker encouraged the audience to participate in the development and testing of the query language, and provided instructions on how to do so.