profile
viewpoint
Andrew Lytvyn litwisha Ocean S.A. Kyiv Python Developer

asvetlov/aioscript 22

Abstract asynchronous with threading and multiprocessing

litwisha/daemon-car 1

Daemon tool for searching diffetent cars on different websites

litwisha/aiocassandra 0

Simple threaded cassandra wrapper for asyncio

litwisha/aioelasticsearch 0

aioelasticsearch-py wrapper for asyncio

litwisha/aiohttp 0

Async http client/server framework (asyncio)

litwisha/aiohttp-security 0

auth and permissions for aiohttp

litwisha/aioscript 0

Abstract asynchronous with threading and multiprocessing

litwisha/aioslacker 0

slacker wrapper for asyncio

PR opened devsbb/business-rules

Reviewers
missing variable exception

Added MissingVariableException exception. User-defined variables can raise this exception, just in case, if the variable value is missing. If the exception was raised, than corresponding conditions are negative(false).

Example: we have an order, and each order has payment attribute, which contains payment country.

class Payment:
    type: str
    country: str
    
class Order:
    payment: Payment = None

we have 3 orders with corresponding payments:

  1. Payment(country='DE')
  2. Payment(country='AT')
  3. none

if we have a condition: payment_country != 'DE', than in this case 2-3 orders will return True, but 3rd order has no payment.

Situations depend on business logic, so MissingVariableException will give more flexibility to user.

+104 -1

0 comment

4 changed files

pr created time in 2 days

push eventdevsbb/business-rules

Andriy Lytvyn

commit sha c1eb86f33dfcd8fbe964608418f9a72652ecb6f2

missing variable exception

view details

push time in 2 days

push eventdevsbb/business-rules

Andriy Lytvyn

commit sha a58cdd351db6dcdb29187f2b27346b08b6754afa

newline

view details

push time in 2 days

push eventdevsbb/business-rules

Andriy Lytvyn

commit sha 6af030e0f8cb4ef4a974b17eb503654ff99e7414

missing variable exception docstrings

view details

push time in 2 days

push eventdevsbb/business-rules

Andriy Lytvyn

commit sha d4159b49a47bc8eae7ca62e162db51aba7c2e814

docstrings

view details

push time in 2 days

create barnchdevsbb/business-rules

branch : missing_variable

created branch time in 2 days

more