2 ms·
Where and why you are using Python?
by m-x-m 14y ago
Where and why you are using Python?
- tablet 14y agoHere is the story. Initially Python was used to simplify, automate and speed-up REST services testing. It appeared, that scripting language is a perfect fit for DSL we want to create. DSL I'm talking about serves several goals to end users: - Filter anything. Like get all work assigned to у AssignedUser.Contains(Me) - Add entities into system quickly - Do batch operations on entities. Like movetoproject('45') - Define own macros and use them (VERY advanced feature) def rejectIdea(e): e.entityState = 'Closed' e.comments = [comment('Sorry, we are not going to implement this idea in the future')] e.save() Basically, I am speaking about CLI (with autocompletion) for end user. It is VERY uncommon for web application to have CLI, but I personally think it is a killer feature to advanced users who wants to be really productive with the system. Python is used to create and engine for all these operations I've described above. In future end users will be able to program own behavior. Sounds a bit crazy, but still it is worth to try :)