Sobes.tech

Why is GIL needed at all, given that it imposes such restrictions?

Senior
СБЕРСБЕР
113

Is it necessary to specify version numbers for dependencies in requirements.txt?

Junior — Middle
113

How is data exchanged between microservices?

Junior — Middle
113

What are iterators and generators? What is their purpose?

Middle+
cleverbots
113

Why are immutable data types, such as tuples, needed in Python when lists exist?

Middle
it spirit
113

What can be said about the advantages and disadvantages of NoSQL non-relational databases?

Junior — Middle
113

"""Write code that extracts links from raw text and sorts them according to certain rules. The list of links returned should not contain duplicates. Sorting rules are as follows: - Priority 1: The first detected links, up to self.first_extracted_links - Priority 2: Links to cloud drives and documents (Yandex Disk, etc.) - Priority 3: Links to files (ending with extensions like .exe, .pdf, .rar, etc.) - Priority 4: Remaining links sorted from longer to shorter strings Also, consider the limit on the number of links and implement a context manager. Can be run, for example, at [link] Total: - 30 minutes are given for execution - Write functions apply, process, and functions for the context manager - All tests must pass - Tests cannot be modified - You can use imports - After writing, you can check by running locally, and fix if something is wrong on this page Regex for link detection: (?:https?|ftp):\/\/(?:[a-zA-Z0-9-]+\.)*[a-zA-Z0-9-]+\.[a-zA-Z]{2,}(?::\d+)?(?:\/[^\s()]*)? """ class LinkExtractor: DEFAULT_CLOUDS = frozenset(( "drive.google.com", "mediafire.com", "yadi.sk", "disk.yandex.ru", "cloud.mail.ru", "mega.nz" )) # You can extend this method or rewrite it def __init__(self, max_links: int = 7, first_extracted_links: int = 2, clouds = None): # Maximum number of links to return in the array self.max_links = max_links # Number of links extracted for the first condition self.first_extracted_links = first_extracted_links # List of domains considered as clouds for the second condition self.clouds = clouds or self.DEFAULT_CLOUDS self._results = [] # Write this method, adds a part of text to analyze later def apply(self, text) -> "LinkExtractor": ... return self"""}]}]}

Middle+
АВ Софт
113

Have you used the @property decorator in your Python projects?

Junior — Middle
113

What is typing in Python?

Middle
ПАО Сбербанк
113

How much of your work time do you spend programming in Python?

Junior — Middle
OkkoOkko
113

What microservice have you developed from scratch?

Middle+
Iconiccompany
113

What components or mechanisms in Python control the concurrent execution of threads?

Junior — Middle
113

What is the difference between PUT and PATCH? How should the server respond if not all fields are sent with the PUT method? Provide a real case of using PATCH.

Senior
СовкомбанкСовкомбанк
113

What tasks in your previous project did you find less interesting or more difficult to perform?

Junior — Middle
ITKey
113

Have you experienced periods of professional burnout during your work?

Junior — Middle
113

If two synchronous FastAPI handlers with time.sleep(5) are called in parallel, how long will they take to execute?

Middle
ПАО Сбербанк
112

How did you deploy in Kubernetes, and which web server did you use?

Middle+
Литрес
112

What problems can occur when transferring a file between servers? What should be paid attention to?

Senior
ПАО Сбербанк
112

What will be important for you to see in a new company? What do you pay attention to first when choosing offers?

Middle+
ARX
112

Какие схемы данных вы использовали или создавали с помощью библиотеки Pydantic?

Junior — Middle
Snap IT
112
/547