Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add methods for marshalling Localization objects to/from file #51

Open
ChrisTimperley opened this issue Dec 15, 2017 · 0 comments
Open
Assignees
Labels

Comments

@ChrisTimperley
Copy link
Contributor

ChrisTimperley commented Dec 15, 2017

We should add methods to read and write Localization objects from/to disk. These methods will no doubt be valuable for numerous purposes later in the project, but for now they would be invaluable for easily mocking Localization data. Since, for the time being, we intend to use these methods for the purposes of mocking, we should use a compact and human-readable format to store them; YAML seems like the best fit.

class Localization(object):
   ....
   @staticmethod
   def from_file(fn) -> 'Localization':
     ...

  def to_file(fn) -> None:
    ...
@mausotog mausotog self-assigned this Dec 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants