Skip to content

Python module/library for saving the list of translators of a given Transifex project into a JSON file.

License

Notifications You must be signed in to change notification settings

funilrys/Fasternix-Stratalorn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fasternix Stratalorn (Transifex Translators)

License: MIT GitHub release GitHub commits Transifex API

Python module/library for saving the list of translators of a given Transifex project into a JSON file.

Features

  • Works with python3.x and python2.x
  • Access Transifex project details
  • Get list of translators and save the result into a JSON file
  • Get list of translators and return the result in Python dict format
  • Get list of translators and return the result in Python list format

Installation

From Github

https://github.com/funilrys/Fasternix-Stratalorn.git
cd Fasternix-Stratalorn && python setup.py install

Examples of usage

Common usage

The following will save the list of translator into translators.json in you current location.

from fasternix_stratalorn import get

get('funilrys', 'desktop-app')

Python list format

The following will not save the list of translator into translators.json but it'll return a python list of translators usernames.

#!/bin/env python
from fasternix_stratalorn import get

translators = get('funilrys', 'desktop-app', save_in_file=False, return_list=True)
print(translators)

Python dict format

The following will save the list of translator into translators.json and it'll return a python dict of the translator's usernames.

Output format: {'translators':['user1','user2']}

#!/bin/env python
from fasternix_stratalorn import get

translators = get('funilrys', 'desktop-app', save_in_file=True, return_dict=True)
print(translators)

How to contribute?

To contribute, you have to send a new Pull Request after you forked and edited the script(s).

⚠️ WARNING ⚠️

DO NOT FORGET

  • To sign your commit(s) with "Signed-off by: FirstName LastName < email at service dot com >" and/or simply sign your commit(s) with PGP (Please read more here).
  • All contributions/modifications must be done under the dev or a new branch if you plan to send a new Pull Request.
  • ⚠️⚠️⚠️ Every contributions/modifications which are under master (exception for minor changes) will not be merged.

License

MIT License

Copyright (c) 2017 Nissar Chababy <contact at funilrys dot com>

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

About

Python module/library for saving the list of translators of a given Transifex project into a JSON file.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages